Skip to content

Instantly share code, notes, and snippets.

@oifland
oifland / IronJsConsole.cs
Created February 29, 2012 23:07
A simple console for executing JS commands against IronJs
static void Main(string[] args)
{
var context = new IronJS.Hosting.CSharp.Context();
Console.WriteLine("Type a JS expression below and press enter. (Blank line to quit.)");
Console.Write("js-console> ");
string command = Console.ReadLine();
while (command != "" && command != "exit")
@oifland
oifland / Jenkinsfile
Last active July 15, 2024 06:36
Loops in Jenkinsfiles
// Related to https://issues.jenkins-ci.org/browse/JENKINS-26481
abcs = ['a', 'b', 'c']
node('master') {
stage('Test 1: loop of echo statements') {
echo_all(abcs)
}
stage('Test 2: loop of sh commands') {
@oifland
oifland / main.go
Created February 10, 2017 02:45
Gobot Robot
package main
import (
"fmt"
"gobot.io/x/gobot"
"gobot.io/x/gobot/drivers/gpio"
"gobot.io/x/gobot/platforms/audio"
"gobot.io/x/gobot/platforms/chip"
)