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 pony; | |
import graphql.language.*; | |
import java.util.List; | |
public class GraphQLPrinter { | |
private int indentWidth = 4; |
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
2015-01-28 15:33:30 dimadima anyone here edit java with vim? | |
2015-01-28 15:33:37 surial dimadima: only complete blithering idiots. | |
2015-01-28 15:33:45 dimadima hmm | |
2015-01-28 15:33:56 surial vim is a great editor, but it's not intelligent, and java is a language that is extremely suitable to intelligent editing. | |
2015-01-28 15:34:04 surial In fact, you could go so far as to say that you NEED it to keep your sanity. | |
2015-01-28 15:34:06 dimadima i edit java with vim and i'm enjoying it well enough so far | |
2015-01-28 15:34:14 dimadima my one problem is that syntax highlighting | |
2015-01-28 15:34:17 freeone3000 Java IDEs are intelligent so Java developers don't have to be. | |
2015-01-28 15:34:27 freeone3000 dimadima: That's the one thing vim *does* do for Java code. | |
2015-01-28 15:34:27 surial dimadima: have you _used_ an intelligent editor? |
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
#!/bin/bash | |
HOST=172.17.42.1:9200 | |
create() { | |
curl -XPUT "$HOST"/test | |
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
#!/usr/bin/env bash | |
# From https://groups.google.com/forum/#!topic/coreos-dev/JAeABXnQzuE | |
pushd $(dirname $0) > /dev/null; CURRABSPATH=$(readlink -nf "$(pwd)"); popd > /dev/null; # Get the directory in which the script resides | |
set -x | |
MUSLPKG="musl:musl.tgz:http://www.musl-libc.org/releases/musl-1.1.4.tar.gz" | |
LEVTPKG="libevent:libevent2.tgz:https://cloud.github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz" | |
TMUXPKG="tmux:tmux.tgz:http://iweb.dl.sourceforge.net/project/tmux/tmux/tmux-1.9/tmux-1.9a.tar.gz" | |
NCRSPKG="ncurses:ncurses.tgz:http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz" |
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 nsq = require('nsqjs'); | |
function populate(done) { | |
var w = new nsq.Writer('10.0.0.101', 4150); | |
w.connect(); |
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
-- Logs begin at Fri 2014-10-24 23:39:05 UTC, end at Sat 2014-10-25 16:44:02 UTC. -- | |
Oct 25 16:42:32 localhost systemd-journal[84]: Runtime journal is using 6.2M (max allowed 49.9M, trying to leave 74.8M free of 492.8M available → current limit 49.9M). | |
Oct 25 16:42:32 localhost systemd-journal[84]: Runtime journal is using 6.2M (max allowed 49.9M, trying to leave 74.8M free of 492.8M available → current limit 49.9M). | |
Oct 25 16:42:32 localhost kernel: Initializing cgroup subsys cpuset | |
Oct 25 16:42:32 localhost kernel: Initializing cgroup subsys cpu | |
Oct 25 16:42:32 localhost kernel: Initializing cgroup subsys cpuacct | |
Oct 25 16:42:32 localhost kernel: Linux version 3.16.2+ (buildbot@ip-10-204-3-57) (gcc version 4.7.3 (Gentoo Hardened 4.7.3-r1 p1.4, pie-0.5.5) ) #2 SMP Thu Oct 16 01:11:04 UTC 2014 | |
Oct 25 16:42:32 localhost kernel: Command line: init=/usr/lib/systemd/systemd console=ttyS0,115200n8 console=tty0 ro noswap cros_legacy root=LABEL=ROOT rootflags=subvol=root usr=gptprio: usr=PARTUUID=7130c94a-213a-4e5a- |
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
# No rethinks running | |
[root@coreos-1 ~]# dig rethinkdb-29015.skydns.local @127.0.0.1 [4/528] | |
; <<>> DiG 9.9.4-P2-RedHat-9.9.4-15.P2.fc20 <<>> rethinkdb-29015.skydns.local @127.0.0.1 | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9478 | |
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 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
var Promise = require('bluebird'); | |
var r = require('rethinkdb'); | |
var conn; | |
// Manage a 1-connection "pool"; | |
function getConnection() { | |
if (conn) { return Promise.resolve(conn); } | |
return r.connect({ db: 'lm' }) | |
.then(function(c) { return conn = c; }) | |
.catch(function(err) { console.log(err.stack || err); }) |
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
[ | |
{ | |
"description": "Evaluating map.", | |
"duration(ms)": 62.225767, | |
"sub_tasks": [ | |
{ | |
"description": "Evaluating make_array.", | |
"duration(ms)": 0.042675, | |
"sub_tasks": [ | |
{ |
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
r.table('junk').update({ | |
myArray: [] | |
}) | |
// Doesn't this re-write doc.myArray with the result of r.row('myArray').append()? | |
// If so, and if doc.myArray is long, would this be slow? Or consume lots of RAM, at least. | |
r.table('junk').update({ | |
myArray: r.row('myArray').append('something') |