Skip to content

Instantly share code, notes, and snippets.

View 0xh3x's full-sized avatar

Giorgi Jvaridze 0xh3x

View GitHub Profile
@0xh3x
0xh3x / vectorgraph.ipynb
Last active June 8, 2024 02:27
VectorGraph - PoC from Memory Hackathon
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/bin/java -ea -Ddtype=float -Didea.launcher.port=7533 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 14.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 14.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA 14.app/Contents/plugins/junit/lib/junit-rt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/javafx-doclet.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/
package com.giorgijvaridze.playground;
public class Main {
public static void main(String[] args) {
Person soso = new Person();
Person soso1 = new Person();
Person soso2 = new Person();
Person.printObjCount();
}
package com.giorgijvaridze.playground;
public class Person {
private String first_name = "No name";
private String last_name;
private int age;
public static int objCount = 0;
public static void printObjCount(){
System.out.println(objCount);
#!/bin/sh
curl http://translate.ge/q.aspx?w=$1 2>/dev/null|sed -e :a -e 's/<[^>]*>//g;/</N;//ba'&&echo
cd /path/to/dir/kadata
head -100 allwords-unique-sorted.txt
და 8670483
არ 3767689
რომ 2586399
რა 1869882
თუ 1735775
ეს 1428843
უნდა 1240086
cd /Hadoop
bin/hadoop dfs -getmerge /user/kadata-output-sorted /path/to/dir/kadata/allwords-unique-sorted.txt
pig
grunt> raw = LOAD '/user/kadata-output/part-r-00000' USING PigStorage('\t') AS (word:chararray, cnt:int);
grunt> raw_ordered = ORDER raw BY cnt DESC, word;
grunt> STORE raw_ordered INTO '/user/kadata-output-sorted' USING PigStorage();
bin/hadoop dfs -getmerge /user/kadata-output /path/to/dir/kadata
cd /path/to/dir/kadata
ls -sh kadata-output
159M kadata-output
wc -l kadata-output
4839699 kadata-output
bin/hadoop jar hadoop-0.20.2-examples.jar wordcount /user/kadata /user/kadata-output