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
http://gitorious.org/webkitgtk-examples/examples/trees/master |
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
fergalhainey@FergalMBP~$ openssl s_client -connect central-e2.crashplan.com:443 | |
CONNECTED(00000003) | |
5973:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:/SourceCache/OpenSSL098/OpenSSL098-35/src/ssl/s23_clnt.c:601: |
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 runningProgram = 0; // For changing programs | |
long millis = 0L; // Keeping track of time between switch hits | |
// ... and any future time use. | |
void main() { | |
// Set up time tracking variable | |
millis = mseconds(); | |
// Turn off those pesky motors | |
ao(); | |
// Decide what program to run |
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 runningProgram = 0; // For changing programs | |
long millis = 0L; // Keeping track of time between switch hits | |
// ... and any future time use. | |
void main() { | |
// Set up time tracking variable | |
millis = mseconds(); | |
// Turn off those pesky motors | |
ao(); | |
// Decide what program to run |
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
void pwmFd(float on, long duration) { | |
pwmAbstract(0, 0b00000011, on, duration); | |
} | |
void pwmBk(float on, long duration) { | |
pwmAbstract(1, 0b00000011, on, duration); | |
} | |
void pwmAbstract(int directionNumber, int motors, float on, long duration) { |
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
/* A1 1. */ | |
SELECT HotelNo, COUNT(*) AS SingleRoomsCount | |
FROM room | |
WHERE Type = "single" | |
GROUP BY HotelNo | |
; | |
/* A1 2. With combined double and family rooms > 3 */ | |
SELECT HotelNo, COUNT(*) AS FamilyAndDoubleRoomsCount | |
FROM room |
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
javascript:(function() { | |
document.write(' | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Soduko solver</title> | |
<style type="text/css"> | |
table { | |
cell-spacing: collapse; | |
} |
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
worker_processes 1; | |
error_log /dev/null crit; | |
pid /tmp/nginxbugtest.pid; | |
events { | |
worker_connections 1024; | |
} |
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
class SubversionDownloadStrategy <AbstractDownloadStrategy | |
def initialize url, name, version, specs | |
@name = name | |
super url, name, version, specs | |
end | |
def fetch | |
ohai "Exporting #{@url}" | |
@export = HOMEBREW_CACHE+@unique_token | |
if @spec == :revision |
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
configure_flags << ["--with-somelib=#{Formula.factory('somelib').prefix}"] if Formula.factory('somelib').installed? | |
system "./configure", *configure_flags |