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
{ "users": [ | |
{"name":"billy o'connell", "email":"[email protected]", "age": 27, "earnings":"$37.95"}, | |
{"name":"fanny smith", "email":"[email protected]", "age": 32, "earnings":"$1337.97"}, | |
{"name":"ping sanchez", "email":"[email protected]", "age": 30, "earnings":"$500.07"}, | |
{"name":"raj patel", "email":"[email protected]", "age": 27, "earnings":"$357.07"}, | |
{"name":"manuel escobar", "email":"[email protected]", "earnings":"$519.25"}, | |
{"name": "yoshi yoshimura", "email":"yoshi", "age":19, "earnings":"$514.24"}, | |
{"name":"jackie bauer", "email":"[email protected]", "age": 27, "earnings":"$537.95"}, | |
{"name":"jen o'reilly", "email":"[email protected]", "age": 35, "earnings":"$944.95"}, | |
{"name":"yolanda macmahan", "email":"[email protected]", "age": 42, "earnings":"$40.07"} |
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
{ "users": [ | |
{"name":"billy o'malley", "email":"[email protected]", "age": 27, "earnings":"$37.95"}, | |
{"name":"francis smith", "email":"[email protected]", "age": 32, "earnings":"$1337.97"}, | |
{"name":"ping liu", "email":"[email protected]", "age": 30, "earnings":"$500.07"}, | |
{"name":"sudeep patel", "email":"[email protected]", "age": 27, "earnings":"$357.07"}, | |
{"name":"manuel rodriguez", "email":"[email protected]", "earnings":"$519.25"}, | |
{"name": "yoshi yoshida", "email":"yoshi", "age":19, "earnings":"$514.24"}, | |
{"name":"jackie robinson", "email":"[email protected]", "age": 27, "earnings":"$537.95"}, | |
{"name":"jen o'connor", "email":"[email protected]", "age": 35, "earnings":"$944.95"}, | |
{"name":"yoyo ma", "email":"[email protected]", "age": 42, "earnings":"$40.07"} |
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
import java.util.Locale | |
import java.io._ | |
val w = new BufferedWriter(new FileWriter(new File("/tmp/test.proto"))) | |
w.write("enum Language {\n") | |
("unknown" +: Locale.getISOLanguages).zipWithIndex.foreach { x=> | |
w.write(f" ${x._1.toUpperCase} = ${x._2}; // ${Locale.forLanguageTag(x._1).getDisplayLanguage}\n") } | |
w.write("}\n"); | |
w.close |
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/env bash | |
# git select (branch select) | |
# a git command for checking out a branch or deleting a branch via | |
# a bash selection menu that uses up/down arrow keys | |
# | |
# usage: | |
# - git select | |
# | |
# set up: |
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/env php | |
<?php | |
$n=10; | |
$meth=$argv[1]; | |
if($argv[2]) { | |
$n=$argv[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
chef_gem 'chef-rewind' | |
require 'chef/rewind' | |
include_recipe "postfix::server" | |
include_recipe "dovecot" | |
include_recipe "mysql::client" | |
include_recipe "mi-ssl" | |
pkgs = [] |
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
JobSummary.Status lastStatus = null; | |
while( loop ) { | |
Thread.sleep(POLL_INTERVAL); | |
JobSummary.Status status = client.showJobStatus(job); | |
switch( status ) { | |
case SUCCESS: | |
loop = false; | |
break; | |
case KILLED: | |
throw new Exception("TreasureData job was terminated. " + "(jobID="+jobId+")"); |