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
sprintf("%02x", (0x11+0xff+0x01+0x01) %% 256) |
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
/********** This begin a section **********/ | |
/** This is short comment */ | |
/** | |
* This is a long long | |
* long, but very long comment | |
*/ | |
/** |
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
Section "ServerLayout" | |
Identifier "Layout0" | |
Screen 0 "Screen0" 0 0 | |
Option "BlankTime" "0" | |
Option "StandbyTime" "0" | |
Option "SuspendTime" "0" | |
Option "OffTime" "0" | |
Option "Xinerama" "true" | |
EndSection |
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
def midentify(filename) | |
data = {} | |
`midentify "#{filename}"`.split("\n").each do |i| | |
m = i.split('=') | |
data[m[0]] = m[1] | |
end | |
return data | |
end |
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
options snd-usb-audio index=1,15 vid=0x0d8c,0x1d27 pid=0x000c,0x0601 enable=1,0,0 | |
options snd-hda-intel index=0,11,12 id=PCH,NVidia,NVidia_1 enable=1,0,0 |
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
compositor SceneCameraBlend | |
{ | |
technique | |
{ | |
texture scene target_width target_height PF_A8R8G8B8 | |
target scene | |
{ | |
input previous | |
} | |
target scene |
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
// imposta il numero del pin associato al led | |
int ledPin = 9; | |
// tiene in memoria il valore | |
int valore = 0; | |
void setup() { | |
// imposta il pin in modalita' OUTPUT | |
pinMode(ledPin, 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
require 'open-uri' | |
require 'json' | |
album = JSON.parse(open('http://api.deezer.com/2.0/album/302127').read) | |
album["tracks"]["data"].map { |x| x["preview"] }.join(' ') |
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
8.times { |i| p "0x#{(0x50 + i).to_s(16)} => A0: #{(i & 0x1) == 1 ? "HIGH" : "LOW "}, A1: #{((i & 0x2) >> 1) == 1 ? "HIGH" : "LOW "}, A2: #{((i & 0x4) >> 2) == 1 ? "HIGH" : "LOW "}" } | |
# "0x50 => A0: LOW , A1: LOW , A2: LOW " | |
# "0x51 => A0: HIGH, A1: LOW , A2: LOW " | |
# "0x52 => A0: LOW , A1: HIGH, A2: LOW " | |
# "0x53 => A0: HIGH, A1: HIGH, A2: LOW " | |
# "0x54 => A0: LOW , A1: LOW , A2: HIGH" | |
# "0x55 => A0: HIGH, A1: LOW , A2: HIGH" | |
# "0x56 => A0: LOW , A1: HIGH, A2: HIGH" | |
# "0x57 => A0: HIGH, A1: HIGH, A2: HIGH" |
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
UPDATE projects SET identifier = 'new_identifier' WHERE identifier = 'current_identifier'; |