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
// 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 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 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 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 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 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 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 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 |
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
# Keymap for Atom Emacs key bindings | |
'.workspace .editor': | |
'ctrl-h': 'core:backspace' | |
'ctrl-d': 'core:delete' | |
'ctrl-a': 'editor:move-to-first-character-of-line' | |
'ctrl-e': 'editor:move-to-end-of-screen-line' | |
'ctrl-k': 'editor:delete-line' |
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
# Docker file for Jekyll build | |
FROM ubuntu:13.10 | |
RUN apt-get update | |
RUN apt-get install -y ruby2.0 ruby2.0-dev build-essential screen | |
RUN gem install jekyll | |
RUN gem install therubyracer | |
VOLUME [ "/jekyll" ] |