I hereby claim:
- I am pshevtsov on github.
- I am pshevtsov (https://keybase.io/pshevtsov) on keybase.
- I have a public key ASDPcdbEgEoNZXQVYAnwyHpD2_Tf6zQuslEFJXw83_u4hgo
To claim this, I am signing this object:
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:template name="string-replace-all"> | |
<xsl:param name="text" /> | |
<xsl:param name="replace" /> | |
<xsl:param name="by" /> | |
<xsl:choose> | |
<xsl:when test="contains($text, $replace)"> |
DROP PROCEDURE IF EXISTS AddColumn; | |
DELIMITER '//' | |
CREATE PROCEDURE AddColumn( | |
IN dbName TINYTEXT, | |
IN tableName TINYTEXT, | |
IN fieldName TINYTEXT, | |
IN fieldDef TEXT) | |
BEGIN | |
IF NOT EXISTS ( |
#!/usr/local/plan9/bin/rc | |
path=$PLAN9/bin | |
# List with odd items as keys and even items as values | |
data=('foo' 'bar' \ | |
'bar' 'baz' \ | |
'test' 'passed' \ | |
'foo' 'one more bar' \ | |
'dummy' 'qwerty' \ |
#!/usr/bin/env rc | |
# Return penultimate (i.e. last but one) item from the list | |
fn penultimate { | |
lbo=`{echo $#* -1|bc} | |
echo -n $*($lbo) | |
} | |
data=(item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item item it |
#!/usr/bin/env rc | |
path=($PLAN9/bin) | |
fn datauri { | |
echo data:`{/usr/bin/file -bi $1 | sed 's/ //'}^';'base64,`{/usr/bin/base64 $1 | tr -d '\x0A'} | |
} | |
if(~ $#* 0) | |
echo usage: `{basename $0} file... >[1=2] |
#!/bin/bash | |
function jsonval { | |
temp=`echo $json | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w $prop` | |
echo ${temp##*|} | |
} | |
json=`curl -s -X GET http://twitter.com/users/show/$1.json` | |
prop='profile_image_url' | |
picurl=`jsonval` |
package elblog | |
import ( | |
"time" | |
"github.com/pshevtsov/gonx" | |
) | |
const ( | |
IntervalHourly = -1 * time.Hour |
package main | |
import ( | |
"crypto/md5" | |
"flag" | |
"fmt" | |
"strings" | |
"github.com/chrislusf/glow/flow" | |
) |
#!/usr/bin/env Rscript | |
library(roxygen2) | |
library(rmarkdown) | |
pkg <- "dygraphs" | |
roxygen2::roxygenize(pkg) | |
install.packages(pkg, repos = NULL, type = "source") | |
rmarkdown::render_site(paste(pkg, "docs", sep = "/")) |
I hereby claim:
To claim this, I am signing this object: