Skip to content

Instantly share code, notes, and snippets.

abomonation -> recycler
acacia -> quickcheck, nalgebra
aclui-sys -> winapi
activeds-sys -> winapi
adler32 -> rand
adorn -> compiletest_rs
adsiid-sys -> winapi
advpack-sys -> winapi
af_unix -> libc, errno
ahadmin-sys -> winapi
import json, sys, os
for r, d, f in os.walk('.'):
if r.startswith('./.git') or r == '.':
continue
for filename in f:
with open(os.path.join(r, filename)) as file:
last = file.readlines()[-1]
deps = json.loads(last)['deps']
star_deps = []
@pyfisch
pyfisch / main.rs
Last active August 24, 2016 10:48
extern crate tokio;
use std::io;
use std::ops::Range;
use tokio::io::{TryRead, TryWrite};
use tokio::server::listen;
use tokio::tcp::TcpStream;
use tokio::reactor::{Reactor, Task, Tick};
<!doctype html>
<style>
.test {
width: 200px;
height: 100px;
border: solid 10px rgba(0, 0, 255, 0.5);
/*background-clip: content-box;*/
}
#gradient1 {
<!doctype html>
<style>
#gradient {
width: 400px;
height: 200px;
background-image: linear-gradient(to right, black 0%, red 80%, blue 80%);
}
</style>
<div id="gradient"></div>
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 0px;
}
#spacer {
<!doctype html>
<style>
#button {
background-image: linear-gradient(-180deg, rgb(52, 208, 88) 0%, rgb(40, 167, 69) 90%);
border-color: rgba(27, 31, 35, 0.2);
border-radius: 6px;
border-style: solid;
border-width: 0.633333px;
color: rgb(255, 255, 255);
display: block;
$ ./mach build --dev -v
cargo build --manifest-path /home/michael/Dokumente/git/servo/ports/servo/Cargo.toml -v
Fresh either v1.1.0
Fresh lazycell v0.4.0
Fresh cfg-if v0.1.2
Fresh same-file v0.1.3
Fresh size_of_test v0.0.1 (file:///home/michael/Dokumente/git/servo/components/size_of_test)
Fresh khronos_api v2.0.0
Fresh rustc-serialize v0.3.24
Fresh half v1.0.0
<!DOCTYPE html>
<style>
#foo {
width: 200px;
height: 200px;
border: solid;
background: linear-gradient(to bottom right, transparent 50%, #36c 50%);
background-size: 30px 30px;
background-position: 10px 10px;
for (int i = 0; i < q; i++) {
for (int j = 0; j < q; j++) {
int I = q * coords[0] + i;
int J = q * coords[1] + j;
mat[i * q + j] = I * dim + J;
}
}