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
| #arduino/hardware/arduino/bootloaders/lilypad | |
| #these fuses are for the lilypad with atmega 168! for other chips see arduino/hardware/arduino/boards.txt | |
| avrdude -c usbtiny -p m168 -B 5 -V -e -U lock:w:0x3F:m -U hfuse:w:0xdd:m -U lfuse:w:0xe2:m -U efuse:w:0x00:m | |
| avrdude -c usbtiny -p m168 -B 1 -V -D -U flash:w:LilyPadBOOT_168.hex:i | |
| avrdude -c usbtiny -p m168 -B 5 -V -U lock:w:0x0F:m |
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
| const uint8_t PROGMEM digital_pin_to_port_PGM[] = { | |
| PD, /* 0 */ | |
| PD, | |
| PD, | |
| PD, | |
| PD, | |
| PD, | |
| PD, | |
| PD, | |
| PB, /* 8 */ |
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
| padsp /opt/java/jre/bin/java -Dslimserver=127.0.0.1 -Dskins=headless -jar SoftSqueeze.jar |
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
| jQuery(document).ready(function($){ | |
| $(document).ajaxError(function(e, xhr, settings, exception) { | |
| //if the status of an ajax call is 401 reload the page | |
| //depending on you requirements you can specify window.location = http://... | |
| if(xhr.status == 401){ | |
| window.location.reload() ; | |
| } | |
| }); | |
| }); |
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
| <?php | |
| /* | |
| * Extended Doctrine Query class providing a few additional functions | |
| * for wrapping your where clauses more efficiently | |
| */ | |
| class Doctrine_Query_Extra extends Doctrine_Query | |
| { | |
| protected $_startClause = 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
| hostname = io.popen("uname -n"):read() | |
| -- Default modkey. | |
| if hostname == "hal-9000" then | |
| modkey = "Mod4" -- WIN | |
| modkey2 = "Mod1" -- ALT | |
| else | |
| modkey = "Mod1" -- ALT | |
| modkey2 = "Mod3" -- CTRL |
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
| -- either add to the clientkeys or add to rc.lua at the end | |
| clientkeys = awful.util.table.join(clientkeys, | |
| awful.key({ modkey, }, "s", function (c) c.ontop = not c.ontop end ), | |
| awful.key({ modkey, }, "s", function (c) c.sticky = not c.sticky end ), | |
| ) |
NewerOlder