This file contains hidden or 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
# IntelliJ .idea directory | |
**/.idea/workspace.xml | |
**/.idea/tasks.xml | |
# Built application files | |
*.apk | |
*.ap_ | |
# Files for the Dalvik VM | |
*.dex |
This file contains hidden or 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 Queue() { | |
this.elements = []; | |
} | |
Queue.prototype.getSize = function() { | |
return this.elements.length; | |
} | |
Queue.prototype.push = function(element) { | |
this.elements.push(element); |
This file contains hidden or 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
var blogify = function(opt) { | |
function md2html(file, enc, callback) { | |
var self = this; | |
fs.readFile('./public/index.html', function(err, template) { | |
var newFile = file.clone(), | |
contents = Mustache | |
.render(String(template), { | |
content: marked(String(file.contents)) | |
}); |
This file contains hidden or 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
@Override | |
public UserRefreshResult call() throws InterruptedException { | |
try { | |
checkCacheForUser(); | |
} catch (UserNotCachedException e) { | |
tryCachingUser(); | |
} catch (ApiRequestForUserAlreadyStartedException e) { | |
logger.warn("There is already a registration in progress, ignoring"); | |
return UserRefreshResult.IN_PROGRESS; | |
} |
This file contains hidden or 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
package main; | |
import org.junit.After; | |
import org.junit.Before; | |
import org.junit.Test; | |
import java.io.*; | |
import java.net.Socket; | |
public class ClientTest { |
This file contains hidden or 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
blackjack:node-engines-test jfarrar$ node -v | |
v0.10.29 | |
blackjack:node-engines-test jfarrar$ cat package.json | |
{ | |
"name": "node-engines-test", | |
"version": "0.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" |
This file contains hidden or 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
JWS payload message: Hello world! | |
JWS header: {"alg":"HS256","cty":"text\/plain"} | |
HMAC key: a0a2abd8-6162-41c3-83d6-1cf559b46afc | |
Serialised JWS object: eyJhbGciOiJIUzI1NiIsImN0eSI6InRleHRcL3BsYWluIn0.SGVsbG8gd29ybGQh.nvg_EuyKXSiDGl9dzyDe6MT94218sSRjWFHkKbgzsB8 | |
JWS object successfully parsed | |
Verified JWS signature! | |
Recovered payload message: Hello world! | |
Process finished with exit code 0 |
This file contains hidden or 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
module.exports = Tokenizer; | |
var i = 0; | |
// states | |
var TEXT = i++, | |
IN_KEY = i++, | |
BEFORE_VALUE = i++, | |
IN_VALUE = i++ |
This file contains hidden or 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
# drop and recreate your collection | |
> db.whatever_stuff.drop() | |
true | |
> db.createCollection('whatever_stuff') | |
{ "ok" : 1 } | |
# then run this | |
mongoimport -d test -c prod_registration_events --file whatever.json |
This file contains hidden or 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
git log --graph --oneline --all --decorate |