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
// Store an array of strings with each choice | |
var choices = [ | |
'rock', | |
'paper', | |
'scissors' | |
]; | |
// Store an array of strings with each image URL | |
var images = [ | |
'http://i.imgur.com/n6xptEr.png', |
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
<div class="player"> | |
<img src="http://i.imgur.com/n6xptEr.png" class="rock"> | |
<img src="http://i.imgur.com/n4bDRXp.png" class="paper"> | |
<img src="http://i.imgur.com/E7loAXb.png" class="scissors"> | |
</div> | |
<div class="computer"> | |
<img src=""> | |
</div> |
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
<div class="player"> | |
<img src="http://i.imgur.com/n6xptEr.png" class="rock"> | |
<img src="http://i.imgur.com/n4bDRXp.png" class="paper"> | |
<img src="http://i.imgur.com/E7loAXb.png" class="scissors"> | |
</div> |
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 nrf = require('nrf'); | |
const SPI_DEV = '/dev/spidev0.0'; | |
const CE_PIN = 25; | |
const IRQ_PIN = 24; | |
const CHANNEL = 0x4c; | |
const DATA_RATE = '250kbps'; | |
const CRC_BYTES = 1; | |
const TX_POWER = 'PA_MAX'; |
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
/** | |
* attiny85 pin map: | |
* +-\/-+ | |
* NC PB5 1|o |8 Vcc --- nRF24L01 3v3, pin2 | |
* nRF24L01 CE, pin3 --- PB3 2| |7 PB2 --- nRF24L01 SCK, pin5 | |
* nRF24L01 CSN, pin4 --- PB4 3| |6 PB1 --- nRF24L01 MOSI, pin6 | |
* nRF24L01 GND, pin1 --- GND 4| |5 PB0 --- nRF24L01 MISO, pin7 | |
* +----+ | |
*/ |
The chromebook search key sends the keycode 133, or LWIN
. This can be mapped
as an additional escape key (useful for vim users) using XKB.
Create the file /usr/share/X11/xkb/symbols/chromebook_opts
with the following:
// Make LWIN an additional Escape
hidden partial modifier_keys
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
h1 { | |
border: 1px solid black; | |
} |
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
LOGGING = { | |
"disable_existing_loggers": false, | |
"handlers": { | |
"console": { | |
"formatter": "simple", | |
"level": "INFO", | |
"class": "logging.StreamHandler" | |
}, | |
"logfile": { | |
"formatter": "basic", |
Start with the "Blank" cloud9 template. When it finishes loading, open up the terminal and install the yeoman and the express generator:
npm install -g yo generator-express
Then run the following command to generate the project files:
yo express
Select the "Basic" option, as well as the "Nunjucks" option for the view engine.