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
var q = $.parseQuery(); | |
if(!q.plugin)//If the value isn't set | |
window.location = "./"; //Go to the index file | |
yepnope([{ | |
test: q.plugin === 'javascript', | |
yep: 'plugins/javascript.js', | |
nope: yepnope([{ | |
test: q.plugin === 'arduino', | |
yep: 'plugins/arduino.js', | |
nope: yepnope([{ |
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
<script> | |
var q = $.parseQuery(); | |
if(!q.plugin)//If the value isn't set | |
window.location = "./"; //Go to the index file | |
var testRes = ({ | |
"javascript" : "plugins/javascript.js", | |
"arduino" : "plugins/arduino.js", | |
"frcjava" : "plugins/frcjava.js" | |
})[ q.plugin ]; |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background-color:#269; | |
background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), | |
linear-gradient(0, rgba(255,255,255,.5) 1px, transparent 1px), | |
linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), | |
linear-gradient(0, rgba(255,255,255,.3) 1px, transparent 1px); |
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
C:\Users\Techplex.Engineer\Desktop\nodeApp>jitsu deploy | |
info: Welcome to Nodejitsu techplex.engineer | |
info: jitsu v0.11.4, node v0.8.1 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Welcome to Nodejitsu techplex.engineer | |
info: jitsu v0.11.4, node v0.8.1 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy |
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
{ | |
"_id": 1, | |
"avatar": "Techplex Engineer", | |
"created": "Wed Dec 19 2012 22:12:36 GMT-0500 (Eastern Standard Time)", | |
"email": "[email protected]", | |
"lastLogin": "Wed Dec 19 2012 22:49:38 GMT-0500 (Eastern Standard Time)", | |
"password": "516b9783fca517eecbd1d064da2d165310b19759", | |
"username": "techplex", | |
"uuid": "7e6aba77-bf2c-41b5-8736-30f33ea563c7" | |
} |
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
C:\Users\Techplex.Engineer\Desktop\nodeApp>npm install v8-profiler | |
npm http GET https://registry.npmjs.org/v8-profiler | |
npm http 304 https://registry.npmjs.org/v8-profiler | |
> [email protected] install C:\Users\Techplex.Engineer\Desktop\nodeApp\node_modules\v8-profiler | |
> node-gyp rebuild | |
C:\Users\Techplex.Engineer\Desktop\nodeApp\node_modules\v8-profiler>node "C:\Users\Techplex.Engineer\AppData\Roaming\npm\node_modules\npm\bin\node-gyp | |
-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild |
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
//Count Leading Zeros (CLZ) | |
//Adapted from Wikipedia: http://en.wikipedia.org/wiki/Find_first_set#Algorithms | |
int clz (uint64_t x) { | |
uint64_t t; | |
int r; | |
if (x == 0) | |
return 0; | |
t = 0x8000000000000000; //mask | |
r = 0; //number of zeros counter |
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
OBJS = udiv_64.o | |
CFLAGS = -Wall -Wformat | |
TARGET = test | |
all: $(OBJS) | |
$(CC) -o $(TARGET) $(OBJS) | |
run: all | |
./$(TARGET) |
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
case GPIO_MODE: | |
ret = copy_from_user(&mdata, (struct gpio_data_mode __user *)arg, sizeof(struct gpio_data_mode)); | |
if (ret != 0) { | |
printk(KERN_DEBUG "[MODE] Error copying data from userspace\n"); | |
return -EFAULT; | |
} | |
//get struct from userspace | |
pin = mdata.pin; |
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
float read_temp(int address, char bus) { | |
unsigned int temp = 0; | |
unsigned char msb, lsb; | |
int fd; // File descriptor | |
char *fileName; | |
//int address = 0x49; // Address of TP102 | |
unsigned char buf[10]; // Buffer for data being read/ written on the i2c bus | |
if (bus == 1) |
OlderNewer