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
gource -e 1 --title "Gravity Ace Development" -a 0.1 -s 0.1 \ | |
--file-show-filter "game/" --file-filter ".import" --bloom-multiplier 0.3 \ | |
--fullscreen --crop vertical --hide filenames,progress,mouse |
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 | |
UPSOUND=~/Dropbox/phone-sounds/notifications/Trek\ Beep\ 11.mp3 | |
DOWNSOUND=~/Dropbox/phone-sounds/notifications/Trek\ Beep\ 03.mp3 | |
while [ 1 = 1 ] | |
do | |
ping -q -c 1 -W 1 $1 >/dev/null | |
STATUS=$? |
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
tool | |
extends Label | |
var font | |
onready var texture = load("res://fonts/main.png") | |
func _ready(): | |
# Create font | |
font = BitmapFont.new() |
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/python3 | |
import os | |
import sys | |
import subprocess | |
import optparse | |
import datetime | |
import re | |
import shutil |
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
3 hours ago: Reduced alpha on debug overlay | |
3 hours ago: Updated font | |
11 hours ago: Fix gold chasing player problem | |
12 hours ago: Added bitmap font, reworked menu to scale across resolutions | |
18 hours ago: Added stageScale for UI positioning and size at different resolutions | |
19 hours ago: Basic text abstraction class | |
2 days ago: Notes | |
2 days ago: Basic bomb | |
3 days ago: Tweaked particle count | |
3 days ago: Added toplevel obfuscation option |
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 | |
# Start a container | |
# jotson/webdev runs supervisord so this command waits until Ctrl+C | |
sudo docker run -p 80:80 jotson/webdev $* | |
# Delete container | |
echo "Cleaning up container..." | |
sudo docker rm $(sudo docker ps -a | grep 'webdev.*Exited.*second.*ago' | awk '{ print $1 }') |
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 ObjectPool = { | |
/** | |
* Get a cached entity or create a new one | |
* @param string component Component string (e.g. "player") | |
* @return entity | |
*/ | |
get: function(component) { | |
var objects = Crafty(component); | |
for(var i = 0; i < objects.length; i++) { | |
var e = Crafty(objects[i]); |
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
###########################################################3 | |
# Custom prompt with elapsed timer for last command | |
function command_timer_start { | |
timer=${timer:-$SECONDS} | |
} | |
function command_timer_stop { | |
last_command_elapsed_time=$(($SECONDS - $timer)) | |
unset timer | |
} |
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
Run this in the Python console (Ctrl+`): | |
sublime.active_window().active_view().scope_name(sublime.active_window().active_view().sel()[0].a) |
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
<!-- | |
PHP files are highlighted as text.html.basic source.php.embedded.block.html. | |
The following two entries reverse the highlighting in the Twilight theme | |
so that the HTML blocks are highlighted in PHP and the PHP code is not. | |
--> | |
<dict> | |
<key>name</key> | |
<string>HTML</string> | |
<key>scope</key> | |
<string>text.html.basic</string> |
NewerOlder