[BASH][1] script to build a [texture atlas][2] for small/medium web sites/games. Requires [ImageMagick][3].
This file contains hidden or 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([ | |
| 'marionette', | |
| 'router', | |
| 'controller', | |
| 'modules/auth', | |
| 'modules/vent', | |
| 'views/_layout' | |
| ], function(Marionette, Router, Controller, Auth, Vent, Layout){ | |
| var App = new Marionette.Application(); |
convert image.png -resize 40 txt:-|sed -E 's/://;s/\( ? ?//;s/, ? ?/,/g;s/\)//;s/([0-9]+,[0-9]+,[0-9]+),[0-9]+/\1/g;s/255/254/g;/mage/d'|awk '{print $1,$2}'|sed -E 's/^0,[0-9]+ /print "echo;tput setaf "\;/;s/^[0-9]+,[0-9]+ /print "tput setaf ";/;s/(.+),(.+),(.+)/\1\/42.5*36+\2\/42.5*6+\3\/42.5+16/'|bc|sed 's/$/;echo -n " ";/'|tr '\n' ' '|sed 's/^/tput rev;/;s/; /;/g;s/$/tput sgr0;echo/'|bash
This file contains hidden or 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
| """ | |
| Generates SQL to populate a table of item IDs mapped to icon names. | |
| * Step 1. Convert `Item.dbc` and `ItemDisplayInfo.dbc` to CSV files, e.g. with | |
| `http://www.mediafire.com/?1sydm4aoi9i` | |
| * Step 2. Export item quality to CSV with this command: | |
| `mysql -utrinity -p world --execute "SELECT entry, quality ` | |
| `INTO OUTFILE '/tmp/item_quality.sql' FIELDS TERMINATED BY ','` | |
| `OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\n'` | |
| `FROM item_template"` |
This file contains hidden or 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/assets/javascripts/models/*.coffee": { | |
| "command": "jmodel", | |
| "alternate": "spec/javascripts/models/%s_spec.coffee", | |
| "template": "class @AppName.Models.%S extends Backbone.Model" | |
| }, | |
| "app/assets/javascripts/collections/*.coffee": { | |
| "command": "jcollection", |
This file contains hidden or 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
| using UnityEditor; | |
| using System.Collections; | |
| public class Autobuilder { | |
| static void PerformBuild() | |
| { | |
| string [] scenes = { @"Assets/Scenes/Main Game.unity", | |
| @"Assets/Scenes/Main Menu.unity", |
This file contains hidden or 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
| ## ~/.mdpconf | |
| port "6600" | |
| music_directory "~/Music/" | |
| playlist_directory "~/.mpd/playlists" | |
| db_file "~/.mpd/mpd.db" | |
| log_file "~/.mpd/mpd.log" | |
| pid_file "~/.mpd/mpd.pid" | |
| state_file "~/.mpd/state" | |
| #bind_to_address "~/.mpd/mpd.sock" |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>com.darkice</string> | |
| <key>RunAtLoad</key> | |
| <true/> | |
| <key>KeepAlive</key> | |
| <false/> |
This file contains hidden or 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
| // taken from http://www.ioccc.org/years.html | |
| #include <ncurses.h> | |
| #define T typedef unsigned | |
| T long G; | |
| T short CT; | |
| #define ATG srand(time(0)); initscr(); cbreak(); noecho(); start_color(); | |
| #define GG(T,C) attrset(A_BOLD*!(T)|COLOR_PAIR(C%2+1)); | |
| #define AC(G) init_pair(G/2,G,nodelay(stdscr,G/3)); | |
| #define TCT(A,G,C) mvaddch(A+CTT*6+4,CGA*12+G,C) |
