Skip to content

Instantly share code, notes, and snippets.

View nikravi's full-sized avatar
🍉

Nicolae Racovita nikravi

🍉
View GitHub Profile
@nikravi
nikravi / hexByteArray.go
Last active April 16, 2018 02:10
Golang bytearray hex json representation, Playground: https://play.golang.org/p/fO7lmZ5WjWq
package main
import (
"encoding/hex"
"encoding/json"
"fmt"
"os"
)
// JSN has some struct for json
0xd59ca67F29AcEC5B57e47f2be3e8C93Bea372c59
function processData(input) {
//Enter your code here
console.log(readLine())
}
process.stdin.resume();
process.stdin.setEncoding("ascii");
_input = "";
@nikravi
nikravi / 0_reuse_code.js
Created March 25, 2016 02:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@nikravi
nikravi / ES queries
Created January 21, 2015 16:17
ES query snippets
GET videos/episode/_search
{
"size": 20,
"query": {
"query_string": {
"query": "summer"
}
}
}
// $mq-mobile-portrait : 320px !default;
// $mq-mobile-landscape : 480px !default;
// $mq-tablet-portrait : 640px !default; -- changed because i want my blog content is around this wide, not 768. you should let content & design determine your breakpoints
// $mq-tablet-landscape : 1024px !default;
// $mq-desktop : 1382px !default;
$mq-mobile-portrait : 20em !default;
$mq-mobile-landscape : 30em !default;
$mq-tablet-portrait : 40em !default;
$mq-tablet-landscape : 64em !default;