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
#IfWinActive, ahk_class Photoshop | |
{ | |
; sends Page Up instead of comma ( Back one frame ) | |
,:: | |
SendInput {PgUp} | |
return | |
; sends Page Down instead of period ( Forward one frame ) | |
.:: |
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
# Provides a basic command line interpretor for Java | |
# | |
# Recognizes import statements and places them accordingly | |
# All other statements are placed in the body of a main method | |
# To execute and print a result type "print <statement>" | |
# Type q/e/quit/exit/close to exit interpretor | |
import subprocess,re | |
def writeJava( filename, classname, imports, state, cmdstr ): |
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
# Script to update a ratio via commands posted in a twitch channel | |
# See: http://help.twitch.tv/customer/portal/articles/1302780-twitch-irc | |
import socket | |
import re,os | |
server = "irc.chat.twitch.tv" | |
channel = "#CHANNEL" | |
botnick = "NICKNAME" | |
password = "OAUTHPASS" |
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
#include <iostream> | |
#include <string> | |
using namespace std; | |
int main() | |
{ | |
// you could cascade operators | |
cout << "+---------+" << endl | |
<< "| |" << endl |
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
^LButton:: | |
Send {RButton} |
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
Loop { | |
IfWinActive, Twitter | |
{ | |
SendInput ^w | |
} | |
Sleep, 1000 | |
} |
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
import os,sys | |
from slackclient import SlackClient | |
if len(sys.argv) < 2: | |
print "usage: post_as_bot.py <message>" | |
sys.exit(-1) | |
msg = ' '.join(sys.argv[1:]) | |
BOT_NAME = 'BOTNAME' |
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
SetTitleMatchMode,2 | |
Loop { | |
IfWinActive, Twitter | |
{ | |
SendInput ^w | |
} | |
Sleep, 1000 | |
} |
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
(define (domain hanoi-domain) | |
(:types disk peg - object) | |
(:predicates (smaller ?x - disk ?y - object ) | |
(on ?x - disk ?y - object) | |
(clear ?x - object )) | |
(:functions (cost)) | |
(:action Move | |
:parameters (?d - disk ?c - object ?n - object) | |
:precondition (and | |
(smaller ?d ?n) |
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.letter { | |
background-color: #D3FF99; | |
color: #005046; | |
} | |
html.transition { | |
transition: background-color 2.0s ease; | |
background-color: #005046; | |
color: #ffffff; | |
} |