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
#!ruby | |
# | |
# THETAのシャッターをPCから遠隔で切るだけの例 by GOROman | |
# | |
# 参考にしたページ | |
# http://mobilehackerz.jp/contents/Review/RICOH_THETA | |
require 'socket' |
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
var http = require('http'); | |
http.createServer(function (req, res) { | |
setTimeout(function() { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World!'); | |
}, 1000); | |
}).listen(1337); |
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 | |
function init() { | |
clear | |
# Display instructions: | |
echo -e "\033[1mSIMPLE SPRITE SHEET CREATION SCRIPT\033[0m" | |
echo "-----------------------------------" | |
echo "1. Navigate to the folder that contains your tile images." |
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
# Title: | |
# Octopress HTML5 Audio Tag | |
# http://antoncherkasov.me/projects/octopress-plugins | |
# Author: | |
# Anton Cherkasov | |
# http://antoncherkasov.me | |
# antoncherkasov@me.com | |
# Syntax: | |
# {% audio url/to/mp3 %} | |
# {% audio url/to/mp3 url/to/ogg %} |
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 class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> |
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/sh | |
input= | |
while true | |
do | |
input="$(/usr/bin/osascript 2>/dev/null <<-__HEREDOC__ | |
with timeout of 300 seconds | |
tell application "System Events" |
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
app.directive('blur', [function () { | |
return { | |
restrict: 'A', | |
link: function (scope, element) { | |
element.on('click', function () { | |
element.blur(); | |
}); | |
} | |
}; | |
}]); |
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> | |
<h1>Foo is <%= foo %></h1> | |
<% _.each(baz,function(value,index){ %> | |
<h2>Baz <%= index %> is <%= value %> | |
<h2> | |
<% }) %> | |
</body> | |
</html> |
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
// ==UserScript== | |
// @name Google "2-step verification" fix: Uncheck "don't ask" and never "trust (this) device". | |
// @namespace http://mky.io | |
// @include https://accounts.google.com/signin* | |
// @description When "2-step verfication" is turned on, this disables the "Don't ask again on this computer" checkbox. | |
// @grant none | |
// @version 20160728 | |
// ==/UserScript== | |
(function() { |
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
main(); | |
function main() { | |
var myIdleTask = app.idleTasks.add({ | |
name: “my_idle_task”, | |
sleep: 1000 | |
}); | |
var onIdleEventListener = myIdleTask.addEventListener(IdleEvent.ON_IDLE, onIdleEventHandler, false); | |
} | |
// SETINTERVAL DOSNT EXIST SO WE USE THE ONLY POSSIBLE WAY ONIDLE EVENT: |