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
// If youre only interested in the keys, you can iterate through the keySet() of the map: | |
for (String key : map.keySet()) { | |
// ... | |
} | |
// If you only need the values, use values(): | |
for (Object value : map.values()) { | |
// ... | |
} |
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
try(BufferedReader br = new BufferedReader(new FileReader("file.txt"))) { | |
StringBuilder sb = new StringBuilder(); | |
String line = br.readLine(); | |
while (line != null) { | |
sb.append(line); | |
sb.append(System.lineSeparator()); | |
line = br.readLine(); | |
} | |
String everything = sb.toString(); |
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
python -c "import os.path; print os.path.relpath('/foo/bar', '/foo/baz/foo')" |
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 | |
FILE=$1 | |
while read line; do | |
echo "This is a line : $line" | |
done < $FILE |
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
console.log(JSON.stringify(myObject, null, 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
* Wusthof Ikon | |
* Henckels twin | |
* Shun Premier | |
* Shun Classic | |
* Mac Mighty (Chef Pro series) | |
* Mac Chef knife (with dimples) | |
* Global G-2 | |
* Global cooks knife (heavy duty) | |
* Messermeister Meridian |
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
# Awesome Plugins for Sublime Text 2 | |
* AdvancedNewFile | |
* All Autocomplete | |
* DocBlockr | |
* Emmet | |
* Gist (this) | |
* HTML-CSS-JS Prettify | |
* JavaScript Snippets | |
* JSON Lint | |
* PlainTasks |
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 testutils = require('testutils'); | |
var JuttleQuery = require('../../juttle-query'); | |
var environment = require('testutils/environment'); | |
var expect = require('chai').expect; | |
var auth = require('auth'); | |
var jut_ports = require('jut-ports'); | |
var _ = require('underscore'); | |
var ImportSimpleData = require('../juttle-query.import.simple'); | |
var ImportDemoData = require('../juttle-query.import.demo'); | |
testutils.depends('service-auth', 'service-data', 'service-deployment'); |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>The HTML5 Herald</title> | |
<meta name="description" content="The HTML5 Herald"> | |
<meta name="author" content="SitePoint"> |
NewerOlder