I hereby claim:
- I am sbrl on github.
- I am sbrl (https://keybase.io/sbrl) on keybase.
- I have a public key whose fingerprint is C2F7 843F 9ADF 9FEE 264A CB9C C1C6 C0BB 001E 1725
To claim this, I am signing this object:
#!/bin/bash | |
#from https://gist.github.com/sbrl/4a642df930051575d91a | |
public=true | |
desc="(none)" | |
for i; do | |
case "$i" in | |
-p) | |
public=false |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>nanoModal Test</title> | |
</head> | |
<body> | |
<h1>nanoModal Test</h1> | |
<p><strong>Scroll down and click the button</strong></p> | |
using System; | |
using System.Diagnostics; | |
class ValueVsReference | |
{ | |
public static void SetValue(int somenumber, int maxi) | |
{ | |
for (int i = 0; i < maxi; i++) | |
{ | |
somenumber = i; |
<?php | |
/******************************* | |
* An advanced string splitting function written in PHP. | |
* Blog Post: https://starbeamrainbowlabs.com/blog/article.php?article=posts%2F077-PHP-String-Splittting.html | |
* Written by Starbeamrainbowlabs. | |
* Website: https://starbeamrainbowlabs.com | |
* Twitter: @SBRLabs | |
*/ | |
function explode_adv($openers, $closers, $togglers, $delimiters, $str) | |
{ |
function *first_test() | |
{ | |
yield "Hello!"; | |
yield "I am a generator!"; | |
yield "This is the last thing I will yield."; | |
} | |
var test = first_test(), | |
next = test.next(); |
------------------------------------- | |
-- Maze generation script | |
------------------------------------- | |
-- A test by @Starbeamrainbowlabs | |
--------------------------------------------- | |
-- Intelligent table printing function | |
--------------------------------------------- | |
-- From http://coronalabs.com/blog/2014/09/02/tutorial-printing-table-contents/ |
using System; | |
using System.IO; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
StreamReader source = new StreamReader("wikipedia-spelling-corrections.txt"); | |
StreamWriter dest = new StreamWriter("wikipedia-spelling-corrections-new.txt"); | |
while(!source.EndOfStream) |
#!/bin/bash | |
echo "> Getting latest version number" | |
VERSION=v${1:-$(curl https://nodejs.org/dist/index.json | sed -e 's/^.*"version":"\([^"]*\)".*$/\1/' | head -n 2 | tail -n -1 | cut -c 2-)} | |
NODEJS=node-${VERSION}-linux-x64 | |
echo "> Downloading $VERSION of node.js" | |
curl -s https://nodejs.org/dist/${VERSION}/${NODEJS}.tar.xz | tar xvfJ - | |
echo "> Setting ownership of /usr/local to $USER" |
I hereby claim:
To claim this, I am signing this object:
function drawShape(context, pos, sides, radius, rotation) | |
{ | |
if(typeof radius !== "number") | |
rotation = 0; | |
console.log(`Drawing shape at ${pos.toString()}. Sides: ${sides}, Radius: ${radius}`); | |
context.save(); | |
context.translate(pos.x, pos.y); | |