Skip to content

Instantly share code, notes, and snippets.

View Manishearth's full-sized avatar
🍃
yahaha! you found me!

Manish Goregaokar Manishearth

🍃
yahaha! you found me!
View GitHub Profile
@Manishearth
Manishearth / gist:2ba0099663717b71d273
Last active May 25, 2016 15:07
Community Building session minutes

Minutes

Mike Hoye, Introduction

Slides: http://bespokeio.com/moz/portland/

  • Our process reflect and reinforce our values - this is true as much in their failings as in their successes:
    • if something is hard, we don't value making it easy.
    • if something is slow, we don't value making it fast.
  • Gratitude matters.
@Manishearth
Manishearth / html
Created November 30, 2014 09:44
Locally load HTML spec
wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--domains html.spec.whatwg.org \
--no-parent \
https://html.spec.whatwg.org/multipage
pub trait Show {
#[scheme(
TupleLike(try!(fmt.write_str(concat!($_name, "("))); try!($_); fmt.write(b")")),
AnonymousList(try!($_);try!(fmt.write_str(","))),
NamedList(try!(fmt.write_str(concat!($_name,":")));try!($_);try!(fmt.write_str(","))),
StructLike(try!(fmt.write_str(concat!($_name, "{"))); try!($_); fmt.write(b"}")),
UnitLike(fmt.write_str($_name))
)]
fn fmt(&self, fmt: &mut Formatter) -> Result;
}

####Clone the repositories:

git clone git://git.yoctoproject.org/poky
cd poky
git clone git://git.yoctoproject.org/meta-raspberrypi
git clone git://git.openembedded.org/meta-openembedded
git clone git://github.com/imphil/meta-b2g.git
. ./oe-init-build-env rpi-build
@Manishearth
Manishearth / snapshot.sh
Created June 24, 2014 11:12
Creating a new snapshot
cd rust
git checkout master
git pull rust-lang master
git branch -D travis
git checkout -b travis
git cherry-pick $(git rev-parse ci)
git push -f mozilla-servo travis
### Keybase proof
I hereby claim:
* I am Manishearth on github.
* I am manishearth (https://keybase.io/manishearth) on keybase.
* I have a public key whose fingerprint is A5FD F4DA 0438 0CF5 F7B6 1E9B F6DA 825A FA38 FADC
To claim this, I am signing this object:
enum SyncOrAsync<'a> {
Sync(&'a mut JSRef<'a, XMLHttpRequest>),
Async(TrustedXHRAddress)
}
...
impl XMLHttpRequest {
...
fn progress_syncorasync(sync: SyncOrAsync, msg: XHRProgress, script_chan: &ScriptChan) {
match sync {
@Manishearth
Manishearth / mainsite.user.js
Last active August 29, 2015 13:56
Main site links on SE Meta topbar
// ==UserScript==
// @name Main site link on meta topbar
// @namespace Manishearth
// @description Brings back the bold reputation counter/post scores!
// @include http://meta.stackoverflow.com/*
// @include http://meta.serverfault.com/*
// @include http://meta.superuser.com/*
// @include http://stackapps.com/*
// @include http://meta.*.stackexchange.com/*
// @include http://meta.askubuntu.com/*
@Manishearth
Manishearth / kalina.py
Created January 31, 2014 16:25
Kalina emulator
#!/usr/bin/python
# kalina.py
# by Manish Goregaokar
# requires https://github.com/Manishearth/ChatExchange
from random import choice
import json,os,sys
from ChatExchange.SEChatWrapper import *
if("ChatExchangeU" in os.environ):
username=os.environ["ChatExchangeU"]
@Manishearth
Manishearth / gist:2994654
Created June 26, 2012 09:30
Fixed version of http://userscripts.org/scripts/show/121541 for physics.SE retagging
// ==UserScript==
// @name Stack Exchange Retag helper
// @namespace Rob W
// @author Rob W
// @description Configurable helper to enable a quicker retagging of questions at Stack Overflow
// @include http://physics.stackexchange.com/questions/*
// @include http://physics.stackexchange.com/q/*
// @include http://physics.stackexchange.com/search?*
// @include http://physics.stackexchange.com/posts/*/edit*
// @version 2.1