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
#!/bin/bash | |
function f() { | |
sleep "$1" | |
echo "$1" | |
} | |
while [ -n "$1" ] | |
do | |
f "$1" & |
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>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.0</real> | |
<key>Green Component</key> | |
<real>0.0</real> |
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 TFT text example | |
This example demonstrates how to draw text on the | |
TFT with an Arduino. The Arduino reads the value | |
of an analog sensor attached to pin A0, and writes | |
the value to the LCD screen, updating every | |
quarter second. | |
This example code is in the public domain |
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
int sensor = 5; | |
int led = 3; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(led, OUTPUT); | |
} | |
// the loop routine runs over and over again forever: | |
void loop() { |
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
int light; | |
int ledPin = 2; | |
int photoresistor = 0; | |
void setup() | |
{ | |
//Serial.begin(9600); | |
pinMode(ledPin, OUTPUT); | |
analogWrite(ledPin, 0); | |
light = 50; |
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
int pin_data = 13; | |
int pin_latch = 12; | |
int pin_clock = 11; | |
int shift_register[8]; | |
void setup() { | |
pinMode(pin_data, OUTPUT); | |
pinMode(pin_latch, OUTPUT); | |
pinMode(pin_clock, OUTPUT); | |
pinMode(7, OUTPUT); |
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
/*int a = 11; // top | |
int b = 10; // top right | |
int c = 5; // bottom right | |
int d = 4; // bottom | |
int e = 3; // bottom left | |
int f = 12; // top left | |
int g = 13; // middle | |
int h = 6; // point | |
*/ |
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
struct vfs_fn_pointers skel_transparent_fns = { | |
/* Disk operations */ | |
.connect_fn = skel_connect, | |
.disconnect_fn = skel_disconnect, | |
.disk_free_fn = skel_disk_free, | |
.get_quota_fn = skel_get_quota, | |
.set_quota_fn = skel_set_quota, | |
.get_shadow_copy_data_fn = skel_get_shadow_copy_data, | |
.statvfs_fn = skel_statvfs, |
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
[vortec@nuotp] local/samba/bin $ ./smbclient //localhost/public †: 0 | |
Enter vortec's password: | |
Anonymous login successful | |
Domain=[MYGROUP] OS=[Unix] Server=[Samba 4.0.16] | |
smb: \> put /tmp/vagrant20140325-1684-pazm0i good_file | |
putting file /tmp/vagrant20140325-1684-pazm0i as \good_file (0.0 kb/s) (average 0.0 kb/s) | |
smb: \> put /tmp/vagrant20140325-1684-pazm0i bad_file | |
NT_STATUS_UNSUCCESSFUL opening remote file \bad_file | |
smb: \> |
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
Compiling vfs_python.c | |
commands.c: In function ‘python_connect’: | |
commands.c:15:22: warning: initialization from incompatible pointer type [enabled by default] | |
commands.c:18:3: warning: passing argument 2 of ‘PyObject_CallFunction’ discards ‘const’ qualifier from pointer target type [enabled by default] | |
/usr/include/python2.7/abstract.h:326:29: note: expected ‘char *’ but argument is of type ‘const char *’ | |
commands.c: In function ‘python_mkdir’: | |
commands.c:45:22: warning: initialization from incompatible pointer type [enabled by default] | |
commands.c:48:3: warning: passing argument 2 of ‘PyObject_CallFunction’ discards ‘const’ qualifier from pointer target type [enabled by default] | |
/usr/include/python2.7/abstract.h:326:29: note: expected ‘char *’ but argument is of type ‘const char *’ | |
python_importer.c: In function ‘get_py_mod’: |