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_PROGRAMS = some_node_module | |
some_node_module$(EXEEXT): | |
-cd $(NODE_MODULE_DIR) && node-gyp build | |
clean-local: | |
-cd $(NODE_MODULE_DIR) && node-gyp clean |
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
module Attributify | |
def attributify(key, unprocessed=params[key]) | |
if unprocessed.is_a? Hash | |
specific_params = {} | |
unprocessed.each do |k,v| | |
if (v.is_a?(Hash) && !k.to_s.match(/_attributes$/)) or (v.is_a?(Array) && !k.to_s.match(/_ids$/)) | |
# Nested, so suffix with '_attributes' | |
specific_params["#{k}_attributes".to_sym] = attributify(key, v) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
# Use a rooted android phone to load a raspberry pi image onto a microSSD card. | |
# | |
# adb push /dev/block/$PHONEBLOCKDEVICE | |
# won't work because you are not root by default | |
# | |
# Commands like | |
# cat $IMAGEFILE | adb su -c dd of=/dev/block/$PHONEBLOCKDEVICE | |
# won't work because adb corrupts the stream | |
# |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/******************************************************* | |
* USB-ISS test application for Linux. * | |
* * | |
* Sets USB-ISS into spi mode and reads and writes from * | |
* microchips 23k256 * | |
* * | |
* Compiled using gcc, tested on Ubunto 10.4 LTS. * | |
* * | |
* By James Henderson, 2012. * | |
*******************************************************/ |
NewerOlder