This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print "aiueo"; | |
print "iii"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function multiply_matrix(a, b) | |
{ | |
var c = new Array; | |
for(y=0;y<a.length;y++){ | |
c[y] = new Array; | |
for(x=0;x<b[0].length;x++){ | |
sum = 0; | |
for(i=0;i<a[0].length;i++){ | |
sum += a[y][i] * b[i][x]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
graph G { | |
subgraph cluster_1{ | |
label = "takavokaalit" | |
a -- o | |
o -- u | |
u -- a | |
} | |
a -- e | |
o -- e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
teste |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <vector> | |
#include <string> | |
#include <sstream> | |
using namespace std; | |
int main(void) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby -pe 'BEGIN{kpt="k:,p:v,t:d,kk:k,pp:p,tt:t,nk:ng,nt:nn,lt:ll,rt:rr,sk:sk,tk:tk,sp:sp,st:st"; kpt_h=Hash[*(kpt.split(/[:,]/))]}; $_.gsub!(Regexp.new("(" + kpt_h.keys.join("|") + ")(.\n?)$")){kpt_h[$1] + $2}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby -r json -n -e 'print (JSON.parse($_))["text"];STDOUT.flush;' | (while read line; do say "$line"; done) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
struct node_t{ | |
node_t *seuraava; | |
int val; | |
}; | |
node_t *rev_linked_list(node_t *list) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vector> | |
#include <queue> | |
#include <stdio.h> | |
using namespace std; | |
#define INF 1e9 | |
class Graph{ | |
struct edge_t{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
def normalize_pointset(pointset) | |
minx = 1000; | |
miny = 1000; | |
pointset.each{|p| | |
minx = [minx, p[0]].min | |
miny = [miny, p[1]].min | |
} | |
normalized_pointset = [] |
OlderNewer