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
#include <LCD4Bit_mod.h> | |
LCD4Bit_mod lcd = LCD4Bit_mod(2); | |
// Keys | |
// 0 = right | |
// 1 = up | |
// 2 = down | |
// 3 = left | |
// 4 = select | |
//Key message |
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
root@arm:~# dpkg --get-selections | |
adduser install | |
apache2 install | |
apache2-mpm-worker install | |
apache2-utils install | |
apache2.2-bin install | |
apache2.2-common install | |
apt install | |
apt-utils install | |
aptitude install |
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
require 'nokogiri' | |
require 'open-uri' | |
@servers = Server.where(:active => true) | |
@servers.each do |s| | |
url = "http://" + s.ip_address + ":9999/stats_10?type=counters" | |
doc = Nokogiri::XML(open(url)) | |
s.ports_in_use = doc.xpath("//counters/item[@name='CT/Licensed/Ports']").text.to_i | |
s.ports_total = doc.xpath("//counters/item[@name='CT/Licensed/Licensed']").text.to_i | |
s.save | |
end |
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
# SQLite version 3.x | |
# gem install sqlite3 | |
# | |
# Ensure the SQLite 3 gem is defined in your Gemfile | |
# gem 'sqlite3' | |
development: | |
adapter: sqlite3 | |
database: db/development.sqlite3 | |
pool: 5 | |
timeout: 5000 |
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
''' | |
Copyright (C) 2012 Matthew Skolaut | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and | |
associated documentation files (the "Software"), to deal in the Software without restriction, | |
including without limitation the rights to use, copy, modify, merge, publish, distribute, | |
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial |
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
''' | |
Copyright (C) 2012 Matthew Skolaut | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and | |
associated documentation files (the "Software"), to deal in the Software without restriction, | |
including without limitation the rights to use, copy, modify, merge, publish, distribute, | |
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial |
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
/* 8 LEDs blinking at random intervals without delay | |
Using the millis method you don't have to wait for an operation to happen before executing the next bit of code. | |
If you don't use this method you can't overlap state changes. | |
*/ | |
// constants won't change. Used here to | |
// set pin numbers: | |
const int ledPin = 13; // the number of the LED pin | |
const int ledPin2 = 12; | |
const int ledPin3 = 11; |
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
#include <opencv/cv.h> | |
#include "opencv2/highgui/highgui.hpp" | |
#include <iostream> | |
using namespace cv; | |
using namespace std; | |
int main(int argc, char* argv[]) | |
{ | |
VideoCapture cap(0);// open the video file for reading |
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
# Did you run Voodoo on the registry and reboot? | |
# Did you run "Set-ExecutionPolicy remotesigned" ? | |
Set-Location C:\voodoomagic | |
function Test-ReparsePoint([string]$path) { | |
$file = Get-Item $path -Force -ea 0 | |
return [bool]($file.Attributes -band [IO.FileAttributes]::ReparsePoint) | |
} | |
function Symlinker([string]$dir) { |
OlderNewer