I hereby claim:
- I am k4nar on github.
- I am k4nar (https://keybase.io/k4nar) on keybase.
- I have a public key whose fingerprint is 87A9 A72E ABF3 3C0B E0BA B36A 28CC 6944 9027 D53A
To claim this, I am signing this object:
import faulthandler | |
import threading | |
import time | |
def oups(): | |
import ctypes | |
# Segfault! | |
ctypes.string_at(0) |
CREATE OR REPLACE FUNCTION nuke() RETURNS void AS $$ | |
DECLARE stmt text; | |
BEGIN | |
SELECT 'WITH ' || string_agg('_' || table_name || ' AS (DELETE FROM ' || table_name || ')', ', ') || ' SELECT 1' | |
FROM information_schema.tables | |
WHERE table_schema = 'public' | |
AND table_type <> 'VIEW' | |
INTO stmt; | |
EXECUTE stmt; |
I hereby claim:
To claim this, I am signing this object:
import time | |
import circus | |
import redis | |
from tornado import gen | |
@gen.coroutine | |
def start_workers(*args, **kwargs): |
pub struct Point { | |
x: f64, | |
y: f64, | |
z: f64 | |
} | |
impl Mul<Point, Point> for Point { | |
fn mul(&self, other: &Point) -> Point { | |
Point {x: self.x * other.x, y: self.y * other.y, z: self.z * other.z} | |
} |
trait Foo { | |
fn foo() -> int { 10 } | |
} | |
struct FooStruct; | |
impl Foo for FooStruct { | |
fn bar(&self) { | |
println!("Foo : {}", Foo::foo()); | |
} |
import os | |
from subprocess import call | |
from gmusicapi import api | |
g = api.Api() | |
print "Loging..." | |
g.login("email", "password") | |
print "OK !" | |
for song in g.get_all_songs(): |