I hereby claim:
- I am kai5263499 on github.
- I am kai5263499 (https://keybase.io/kai5263499) on keybase.
- I have a public key whose fingerprint is 49F9 E276 89A6 D0EE 5935 6B9B EE8B 7537 16A0 D1D5
To claim this, I am signing this object:
Option("bad") filter { _ != None } map { catching(classOf[NumberFormatException]) opt _.toInt } getOrElse None |
story = story.replace(person\.go\?ID=\d+"\s*[^>]*>([^(<)]+)<\/a>/g,function() { | |
return 'person.go?ID='+escape(arguments[1].replace(/\./g,''))+'">'+arguments[1]+''; | |
}); |
getChunkDivisions(File, 0, Chunksize, ChunkDivisions) -> | |
[{chunk,0,Chunksize}|ChunkDivisions]; | |
getChunkDivisions(File, Size, Chunksize, ChunkDivisions) -> | |
if | |
Size-Chunksize=<0 -> | |
ComputedChunkEnd = Chunksize-(Chunksize-Size), | |
CorrectedChunkEnd = walkToNextLineBreak(File, ComputedChunkEnd), | |
getChunkDivisions(File, 0, CorrectedChunkEnd, ChunkDivisions); | |
true -> | |
ComputedChunkEnd = Size-Chunksize, |
#!/bin/bash | |
cd ~ | |
LOCKFILE="download-running" | |
if [ -f $LOCKFILE ];then | |
exit 0 | |
fi | |
touch $LOCKFILE |
<%@ WebHandler Language="C#" CodeBehind="proxy.ashx.cs" Class="PIPE.Host.proxy" %> |
I hereby claim:
To claim this, I am signing this object:
# From http://interactivepython.org/LpOMZ/courselib/static/pythonds/BasicDS/linkedlists.html | |
class Node: | |
def __init__(self,initdata): | |
self.data = initdata | |
self.next = None | |
class LinkedList: | |
def __init__( self ): | |
self.head = None | |
self.tail = None |
from random import randrange | |
from random import randint | |
def intArray(maxrand=100,randomValues=False): | |
l=randrange(maxrand) | |
o=[] | |
for i in range(1,l): | |
if(randomValues): | |
o.append(randrange(maxrand)) |
// Permute the string using Heap's algorithm https://en.wikipedia.org/wiki/Heap%27s_algorithm | |
var perm = function(list, n){ | |
if(n==1){ | |
var inputString = list.join(''); | |
console.log(inputString); | |
} else { | |
for(var c=0;c<n;c++){ | |
perm(list,n-1); | |
if(n%2===0){ | |
var temp1=list[c]; |
var SelectNextLimit = function(upper,res) { | |
var base = parseInt(upper,16); | |
var resolution = parseInt(res, 16); | |
var upper,lower; | |
this.next = function() { | |
upper = (base).toString(16); |