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
#!/bin/bash | |
# MOUNT GOOGLE DRIVE IN LINUX WITH GOOGLE-DRIVE-OCAMLFUSE | |
# http://www.webupd8.org/2013/09/mount-google-drive-in-linux-with-google.html | |
mkdir Drive | |
google-drive-ocamlfuse -o big_writes Drive/ |
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
<!DOCTYPE html> | |
<html prefix="og: http://ogp.me/ns#" xmlns:og="http://ogp.me/ns#"> | |
<head> | |
<meta charset="utf-8"> | |
<title> | |
{% if is_login %}Login | |
{% elif is_home %}{{ site.author }} | |
{% elif is_tag %}{{ tag }} | |
{% elif post %}{{ post.title }} | |
{% endif %} |
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
cat purchases.txt | \ | |
awk -F'\t' '{ print $4"\t"$5 }' | \ | |
awk -F $'\t' '{ sums[$1] += $2} END \ | |
{ for (i in sums) printf("%s\t%f\n", i, sums[i]) }' \ | |
| sort |
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
{ | |
"dataStreamId": | |
"derived:com.google.step_count.delta:___GDC_PRJ_ID___:Example Manufacturer:ExampleTablet:1000001:", | |
"dataStreamName": "", | |
"name": "myDataSource", | |
"type": "derived", | |
"application": { | |
"detailsUrl": "http://example.com", | |
"name": "Foo2 Example App", | |
"version": "1" |
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
{ | |
"error": { | |
"code": 400, | |
"message": "Expected dataStreamId to be: derived:com.google.step_count.delta:___GDC_PRJ_ID___:Example Manufacturer:ExampleTablet:1000001:", | |
"errors": [ | |
{ | |
"domain": "global", | |
"message": "Expected dataStreamId to be: derived:com.google.step_count.delta:___GDC_PRJ_ID___:Example Manufacturer:ExampleTablet:1000001:", | |
"reason": "invalidArgument" | |
} |
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
{ | |
"minStartTimeNs": 1397515179728708316, | |
"maxEndTimeNs": 1397513334728708316, | |
"dataSourceId": | |
"derived:com.google.step_count.delta:___GDC_PRJ_ID___:Example Manufacturer:ExampleTablet:1000001:", | |
"point": [ | |
{ | |
"startTimeNanos": 1397513365565713993, | |
"endTimeNanos": 1397513334728708316, | |
"dataTypeName": "com.google.step_count.delta", |
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
/* | |
LiquidCrystal Library - Hello World | |
Demonstrates the use a 16x2 LCD display. The LiquidCrystal | |
library works with all LCD displays that are compatible with the | |
Hitachi HD44780 driver. There are many of them out there, and you | |
can usually tell them by the 16-pin interface. | |
This sketch prints "Hello World!" to the LCD | |
and shows the time. |
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
{ | |
"status" : { | |
"properties" : { | |
"serialId" : { "type" : "string", "index": "not_analyzed" }, | |
"productName" : { "type" : "string", "index": "not_analyzed" }, | |
"productSpace" : { "type" : "integer" }, | |
"postDate" : { "type" : "date", "format": "dd-MM-yyyy HH:mm:ssZZ" } | |
} | |
} | |
} |
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
curl -XDELETE 'http://localhost:9200/store' | |
curl -XPUT 'http://localhost:9200/store' | |
curl -XPUT 'http://localhost:9200/store/_mapping/product' -d '@mapping.json' | |
python -m esimport -s localhost:9200 -f xyz.csv -i store -t product |
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
... | grep 'Mem:' | |
... | awk '$1 == "Mem:" { print $0 }' |