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 addData(time, val) { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var last = sheet.getLastRow(); | |
| var cell = sheet.getRange(last, 1); | |
| var pretime = cell.getValue(); | |
| if (pretime != time) { | |
| cell.offset(1, 0).setValue(time); | |
| cell.offset(1, 1).setValue(val); | |
| } | |
| } |
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
| // GAS Script for train daemon on Slack | |
| // ScriptProperties: | |
| // - trainUrl: JR line information web page URL | |
| // - trainName: Name of JR line | |
| // - slackHookUrl: Slack web hook URL | |
| // - slackChannel: Channel name of Slack | |
| function trainRetrieve() { | |
| var url = PropertiesService.getScriptProperties().getProperty("trainUrl"); |
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
| // GAS Script for weather daemon on Slack | |
| // ScriptProperties: | |
| // - weatherUrl: Local weather web page URL on tenki.jp | |
| // - slackHookUrl: Slack web hook URL | |
| // - slackChannel: Channel name of Slack | |
| function rainRetrieve() { | |
| var url = PropertiesService.getScriptProperties().getProperty("weatherUrl"); | |
| var res = UrlFetchApp.fetch(url); |
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
| @powershell -NoProfile -ExecutionPolicy Unrestricted "$s=[scriptblock]::create((gc \"%~f0\"|?{$_.readcount -gt 1})-join\"`n\");&$s" %*&goto:eof | |
| # some powershell script |
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
| <html> | |
| <head> | |
| <link rel="stylesheet" href="https://rawgit.com/pebble/slate/master/dist/css/slate.min.css" /> | |
| </head> | |
| <body> | |
| <h1 class="title">BigDate configuration</h1> | |
| <div class='item-container'> | |
| <div class='item-container-content'> | |
| <label class='item'> |
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
| <html> | |
| <body> | |
| <h2>HabitRPG for Pebble configuration</h2> | |
| <table> | |
| <tr> | |
| <th>Your UUID: </th><td><input type="text" id="uuid" name="uuid" size="60" /></td> | |
| </tr> | |
| <tr> | |
| <th>API Key: </th> | |
| <td><input type="text" id="key" name="key" size="60" /></td> |
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
| *** ./lib/gollum/helpers.rb.org Thu Feb 27 00:19:51 2014 | |
| --- ./lib/gollum/helpers.rb Thu Feb 27 00:20:35 2014 | |
| *************** | |
| *** 6,12 **** | |
| return nil if file_path.nil? | |
| last_slash = file_path.rindex("/") | |
| if last_slash | |
| ! file_path[0, last_slash] | |
| end | |
| end |
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
| /* SETTINGS */ | |
| var l=''; | |
| var p=''; | |
| var area = 'https://www.ingress.com/intel?ll=35.5841133,139.4988137&z=14'; | |
| var v = 20000; //Delay between capturing screenshots, in milliseconds (1000 ms = 1 s) | |
| var reloadtime = 60000 * 120; | |
| var width = 900; //Picture width | |
| var height = 500; //Picture height | |
| var folder = './'; //Folder where to save screenshots, with / (or \) on the end. '.' means current folder. | |
| phantom.injectJs('settings.js'); |
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 -1 --pretty="%ci" . | cut -d ' ' -f 1 | tr -d '-' |
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 | |
| set -e | |
| ### BEGIN INIT INFO | |
| # Provides: docker-webdav | |
| # Required-Start: $syslog $remote_fs docker | |
| # Required-Stop: $syslog $remote_fs docker | |
| # Should-Start: | |
| # Should-Stop: | |
| # Default-Start: 2 3 4 5 |