Skip to content

Instantly share code, notes, and snippets.

View sanity's full-sized avatar

Ian Clarke sanity

View GitHub Profile
def test (x) = {
x*x+"hi";
}
<mx:Script>
<![CDATA[
import org.papervision3d.core.geom.renderables.Triangle3D;
import org.papervision3d.core.geom.renderables.Vertex3D;
import org.papervision3d.core.geom.TriangleMesh3D;
import org.papervision3d.materials.utils.MaterialsList;
import org.papervision3d.objects.primitives.Cube;
import org.papervision3d.cameras.Camera3D;
import org.papervision3d.objects.primitives.Sphere;
import org.papervision3d.materials.ColorMaterial;
09-02-24 11:16:50 INFO : SmileyMain : Response times for POST-RecommendResource : Avg: 27ms Max: 243ms
09-02-24 11:21:50 INFO : SmileyMain : Response times for POST-RecommendResource : Avg: 23ms Max: 75ms
09-02-24 11:26:50 INFO : SmileyMain : Response times for POST-RecommendResource : Avg: 29ms Max: 265ms
09-02-24 11:31:50 INFO : SmileyMain : Response times for POST-RecommendResource : Avg: 0ms Max: 0ms
09-02-24 11:36:50 INFO : SmileyMain : Response times for POST-RecommendResource : Avg: 0ms Max: 0ms
09-02-24 11:41:50 INFO : SmileyMain : Response times for POST-RecommendResource : Avg: 0ms Max: 0ms
09-02-24 11:46:50 INFO : SmileyMain : Response times for POST-RecommendResource : Avg: 30ms Max: 123ms
09-02-24 11:51:50 INFO : SmileyMain : Response times for POST-RecommendResource : Avg: 28ms Max: 98ms
09-02-24 11:56:50 INFO : SmileyMain : Response times for POST-RecommendResource : Avg: 0ms Max: 0ms
09-02-24 12:01:50 INFO : SmileyMain : Response times for POST-RecommendResource : Avg: 0ms Max: 0ms
damp3 n x lr = (1-lr)^n * x + 1-(1-lr)^n
dampb x lr = x + lr*(1-x)
damp2 1 x lr = dampb x lr
damp2 n x lr = dampb (damp2 n-1 x lr) lr
Vegas-2:SenseArray(doubleding) ian$ cat .git/hooks/pre-commit
#!/bin/bash
# Note that the last command in the script must exit with non-zero return
# value for the commit to be aborted
echo -n "Running unit tests: "
mvn test > /tmp/sa.tests.log && echo "Done." || (cat /tmp/sa.tests.log; say "Unit tests failed, commit aborted"; exit 1)
5 tips for Californians visiting Austin for the first time for SXSW
-------------------------------------------------------------------
1) Take off your badge when not at the conference, the locals are not impressed (even
Platinum badges, in fact, especially Platinum badges)
2) Don't lecture us about how wonderful your local Whole Foods is, I can assure you
its not as good as our local Whole Foods
3) Don't think we're all Republicans
{
"tagInfluences":{
"offer_id:5641":-2.658925950527191E-5,
"campaign_id:1881":-3.930926322937012E-5,
"gender:f":1.053791493177414E-4,
"country:us":-1.4863908290863037E-4,
"position:8":-1.8363818526268005E-5,
"traffic_source:panel":-6.482601165771484E-4
},
"ignoredTags":[
Here is the blurb, Janie, myself and some other friends will be there from 7pm:
------
Come on over to The VORTEX today, Wednesday, April 1, 5pm-10pm to celebrate our new deck and the expansion of our business hours.
The VORTEX, 2307 Manor Road. www.vortexrep.org 512-478-LAVA
Don’t miss The Nematoads, twangy spaghetti western surf guitar, Attic Ted, psyco circus (www.myspace.com/atticted), and Outta Kontrol, B-boys, break dancing, and hip hop. All entertainment is FREE!! NO COVER!!
#!/usr/bin/python
import sys,random
if (len(sys.argv) != 5):
print "Args: every input train test"
sys.exit(-1)
selectevery = int(sys.argv[1])
inputfile = open(sys.argv[2], 'r')
[
{
"boosted":false,
"outcome":0.006310773861798976,
"tag":"offer_id:71"
},
{
"boosted":false,
"outcome":0.005512251287648309,
"tag":"offer_id:3011"