Skip to content

Instantly share code, notes, and snippets.

View gsora's full-sized avatar
🤙
Vibin'

Gianguido Sorà gsora

🤙
Vibin'
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gsora on github.
  • I am gsora (https://keybase.io/gsora) on keybase.
  • I have a public key ASC0SzXCTpTuayEsBGJ5mWMmBKAs44e-rGqDSX8bRSo3CQo

To claim this, I am signing this object:

{
"positions": [{
"id": 4,
"status": "open",
"date": "2016-02-26T17:50:12.000Z",
"amount": 0.01,
"base_price": 341.0,
"type": "long",
"leverage": 2.5,
"profit_loss": 3.35,
#!/usr/bin/env python3
import requests
import json
import datetime
import time
address="c269433f56c29d752ce59895edce82fa992f9dcdc2734a8e6a9ee337b7e44de33c3afe193883"
dataURL="https://siamining.com/api/v1/addresses/"
intervals={
Benchmark started on Mon Apr 18 13:19:45 UTC 2016
Full benchmark log: /home/gsora/bench.log
System Info
-----------
Processor : ARMv7 Processor rev 2 (v7l)
CPU Cores : 4
Frequency : MHz
Memory : 2022 MB
Swap : MB
@gsora
gsora / clone-org
Last active March 21, 2016 13:29
Clone all the repos of given GitHub organizations
#!/usr/bin/env python3
import json
import argparse
import os
from urllib import request as r
from urllib import error
from subprocess import call as execute
parser = argparse.ArgumentParser(description='Clone all the repos of given GitHub organizations, space-divided')
package main
import (
crypto "crypto/rand"
"fmt"
"math/big"
"runtime"
"time"
)
package main
import (
crypto "crypto/rand"
"fmt"
"math/big"
"time"
)
func main() {
package main
import (
"fmt"
"time"
)
func main() {
for i := 0; i < 1000; i++ {
beforeGoroutine := time.Now()
#################################
#
# Backend
#
#################################
# Backend to use: "xrender" or "glx".
# GLX backend is typically much faster but depends on a sane driver.
backend = "glx";
class lista:
listafica = []
def app(self, k):
self.listafica.append(k)
def rLista(self):
return self.listafica