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
# written by sapslaj | |
print "Quick Chrome URL App Generator Thingy\n" | |
print "=====================================\n" | |
print "Name:\n" | |
name = gets | |
print "App URL: \n" | |
appurl = gets |
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
unless File.exist?("#{File.absolute_path(ARGV[0])}") | |
print "Theme file \"#{File.absolute_path(ARGV[0])}\" does not exist.\n" | |
exit | |
end | |
begin | |
gem "xml-simple" | |
rescue LoadError | |
system("gem install xml-simple") | |
Gem.clear_paths |
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> | |
<body> | |
<div id="canvas"></div> | |
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script> | |
<script> | |
var options = {}; | |
window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function (m, key, value) { | |
options[key] = value; | |
}); |
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.defaults = {:email=>'[email protected]', :database=>{:url=>'postgres://localhost/foo'}} | |
Settings.load(organization_name: 'My Company', application_name: 'My Application') | |
configatron.email # => "[email protected]" | |
configatron.database.url = 'postgres://localhost/foo_development' | |
Settings.save # => "{"email":"[email protected]", "database":{"url":"postgres://localhost/foo_development"}}" |
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/bash | |
# | |
# This file echoes a bunch of color codes to the | |
# terminal to demonstrate what's available. Each | |
# line is the color code of one foreground color, | |
# out of 17 (default + 16 escapes), followed by a | |
# test use of that color on all nine background | |
# colors (default + 8 escapes). | |
# |
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
require 'digest' | |
def build_js(start_file, compiled_file, options={}) | |
File.open(compiled_file, "w") do |io| | |
@builder = BuildJS::Builder.new(start_file, options) | |
io.write @builder.build | |
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
namespace WindowsGame2 | |
import System.IO | |
import Microsoft.Xna.Framework | |
public class Extractor(Game): | |
private graphics as GraphicsDeviceManager | |
private basePath as string | |
private outPath as string | |
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
<%= ClientRoutes.to_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
// ==UserScript== | |
// @name maget lonk hjander | |
// @namespace http://layer8.link | |
// @version 0.1 | |
// @description handle magenet links like apro. | |
// @author layer8 | |
// @match *://*/* | |
// @grant GM_log | |
// @require http://code.jquery.com/jquery-2.1.3.min.js | |
// @require http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/md5.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
// Windows image file caches | |
Thumbs.db | |
ehthumbs.db | |
// Folder config file | |
Desktop.ini | |
// Recycle Bin used on file shares | |
$RECYCLE.BIN/ |
OlderNewer