Chewgum:
trying to do html puts you on the error page
Just .NET being dumb, should be okay now
Chewgum:
remove this post help.....how the fuck do i exit the code block in this editor
Select part of the lines you want outside the code block and click the same symbol again.
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Wow, it actually recognises it
Brainfuck syntax support is a must have.
Testing Haskell and F#...
main :: IO ()
main = putStrLn "Hello World"
open System
[<EntryPoint>]
let main argv =
printfn "Hello World"
Console.ReadLine() |> ignore
0
I really like this! Good job, Garry!
import argparse
import struct
#import unicode
import numpy
import dawg
def main():
"""main func"""
result = parse_args()
idir = result.i
odir = result.o
# read file in
print("opening file {}\n".format(idir))
embs = []
infil = open(idir, "r", encoding="utf-8")
..........
res = parser.parse_args()
return res
if __name__ == '__main__':
main()
function [centroids, memberships] = km(X, initial_centroids, max_iters)
%KMEANS Run the k-means clustering algorithm on the data set X.
% [centroids, memberships] = KMEANS(X, initial_centroids, max_iters)
% Runs the k-means algorithm on the dataset X where 'k' is given by the
% number of initial centroids in 'initial_centroids'
%
% This function will test for convergence and stop when the centroids don't
% change from one iteration to the next. It will also break after 'max_iters'
% iterations.
%
% The initial centroids should all be unique. They are typically taken
% randomly from the data set. Note that
% the choice of initial centroids will affect the final clusters. To get
% repeatable results from k-means, you need to use the same initial
% centroids.
%
% Parameters
% X - The dataset, with one example per row.
% initial_centroids - The initial centroids to use, one per row (there
% should be 'k' rows).
% max_iters - The maximum number of iterations to run (k-means will
% stop sooner if it converges).
% Returns
% centroids - A k x n matrix of centroids, where n is the number of
% dimensions in the data points in X.
% memberships - A column vector containing the index of the assigned
% cluster (a value between 1 - k) for each corresponding
% data point in X.
% Get 'k' from the size of 'initial_centroids'.
k = size(initial_centroids, 1);
centroids = initial_centroids;
prevCentroids = centroids;
% Run K-Means
for i = 1 : max_iters
% Output progress
%fprintf('K-Means iteration %d / %d...\n', i, max_iters);
%fflush(stdout);
% For each example in X, assign it to the closest centroid
memberships = findClosestCentroids(X, centroids);
% Given the memberships, compute new centroids
centroids = computeCentroids(X, centroids, memberships, k);
% Check for convergence. If the centroids haven't changed since
% last iteration, we've converged.
if (prevCentroids == centroids)
%fprintf(" Stopping after %d iterations.\n", i);
%if exist('OCTAVE_VERSION') fflush(stdout); end;
break;
end
% Update the 'previous' centroids.
prevCentroids = centroids;
end
end
matlab test
Might help by adding more languages to the webpack
Now be all fancy and make it so it uses Operator Mono
Operator mono is a meme and you know it.
I am giving you that it is very pricey. But I actually do think its somewhat helpful.
How do you people use huge fonts like that? everything feels claustrophobic
you do know that font style != font size, right?
Right, but you can't just make the font size smaller or it starts getting blurry and crap. at least on atom and vscode
Operator pretty much needs to be at least slightly bigger than your average monospace.
but but ... do you all really have such tiny screens?
in vscode with operator mono at size 16(or whatever the default is) I can only see ~50 lines, that's not close to enough. as far as I know most people are using 1080p 24" and not huge 4k monitors with shitloads of space.
Sorry, you need to Log In to post a reply to this thread.