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
/* | |
get SSH.NET (BSD License: http://sshnet.codeplex.com/license) | |
with NuGet: | |
>Install-Package SSH.NET -Version 2013.4.7 | |
or just get the dll from here: http://j.mp/sshNet | |
*/ | |
using System; |
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
#! /bin/sh -e | |
### BEGIN INIT INFO | |
# Provides: compasswatcher | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start and stop the compass watch process for each directory | |
### END INIT INFO |
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
<?php | |
function preg_extract($pattern,$subject,$n=1,$default=''){ | |
if(preg_match($pattern, $subject, $m)){ | |
if (isset($m[$n])) return $m[$n]; | |
} | |
return $default; | |
} |
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
using System; | |
using System.Runtime.InteropServices; | |
using System.ComponentModel; | |
namespace GetLastUserInput | |
{ | |
public class GetLastUserInput | |
{ | |
private struct LASTINPUTINFO | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
//using Sharpduino; | |
//using Sharpduino.Constants; | |
namespace ConsoleApplication1 | |
{ |
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 <LiquidCrystal_SR.h> | |
LiquidCrystal_SR lcd(8,7,TWO_WIRE); | |
// | | | |
// | \-- Clock Pin | |
// \---- Data/Enable Pin | |
// Creat a set of new characters | |
byte armsUp[8] = { | |
0b00100,0b01010,0b00100,0b10101,0b01110,0b00100,0b00100,0b01010}; |
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
<?php | |
function parse_austrian_date($date,$output='U'){ | |
$date = DateTime::createFromFormat('d.m.Y H:i', $date); | |
if($date === false) return false; | |
return $date->format($output); | |
} | |
echo parse_austrian_date('1.2.12 24:14','d.m.Y H:i:s'); |
NewerOlder