Skip to content

Instantly share code, notes, and snippets.

View mhulse's full-sized avatar
👋
👁 ❤️ open source software …

Michael Hulse mhulse

👋
👁 ❤️ open source software …
  • Instructure Inc.
  • Eugene, Oregon
View GitHub Profile
@GOROman
GOROman / ThetaTest.rb
Last active January 13, 2016 05:18
PCからTHETAのシャッターを切る最小限のサンプルプログラム
#!ruby
#
# THETAのシャッターをPCから遠隔で切るだけの例 by GOROman
#
# 参考にしたページ
# http://mobilehackerz.jp/contents/Review/RICOH_THETA
require 'socket'
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);
@mhulse
mhulse / shprite
Last active June 13, 2016 04:04
Simple bash command line script to make sprite textures for video games.
#!/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."
@HKLF4
HKLF4 / audio_tag.rb
Created August 27, 2012 09:54
Octopress HTML5 Audio Tag
# 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 %}
<!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>
@ammojamo
ammojamo / track.sh
Created December 6, 2011 23:38
Time tracking bash script for Mac OS X - periodically asks what you have been doing
#!/bin/sh
input=
while true
do
input="$(/usr/bin/osascript 2>/dev/null <<-__HEREDOC__
with timeout of 300 seconds
tell application "System Events"
@jpoehnelt
jpoehnelt / Angular Blur Directive
Created November 25, 2014 00:37
For blurring angular ng-click elements on click.
app.directive('blur', [function () {
return {
restrict: 'A',
link: function (scope, element) {
element.on('click', function () {
element.blur();
});
}
};
}]);
@andersdn
andersdn / _tlp-dashboard.html
Last active January 29, 2017 06:48
Basic (jquery) ajax template loading for underscore js
<html>
<body>
<h1>Foo is <%= foo %></h1>
<% _.each(baz,function(value,index){ %>
<h2>Baz <%= index %> is <%= value %>
<h2>
<% }) %>
</body>
</html>
@mhulse
mhulse / +fix-2-step.user.js
Last active May 16, 2017 16:24
UPDATED for the 2017 Google login page redesign. +fix-2-step.user.js: Firefox GreaseMonkey or Chrome Tampermonkey script: Google "2-step verification" fix: Uncheck "don't ask" and never "trust (this) device".
// ==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() {
@mim-Armand
mim-Armand / setinterval_extendscript_v0.01.js
Last active September 15, 2017 04:33
setinterval for adobe extend script v 0.1
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: