Skip to content

Instantly share code, notes, and snippets.

View micrypt's full-sized avatar

Seyi Ogunyemi micrypt

View GitHub Profile
#!/bin/sh
echo "assumes java 7 is installed (OpenJDK version)"
#pre dependencies
sudo apt-get install git-core pkg-config libtool automake make g++ connect-proxy unzip python
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
#install zeromq
git clone git clone git://github.com/zeromq/libzmq.git
Promise = (fn) ->
state = 'pending'
value = deferred = null
resolve = (newValue) ->
if newValue and typeof newValue.then is 'function'
newValue.then resolve, reject
return
state = 'resolved'
value = newValue
It's Cathy again . i am glad i can help. this is my skpe ID cathy1988881.
# utils/admin.py
from django.contrib import admin
from django.db.models import get_models, get_app
def autodiscover(name, exclude=[]):
excluded = [ model.__name__ for model in exclude ]
current_app = name.replace('.admin', '')
for model in get_models(get_app(current_app)):
if model.__name__ not in excluded:

Keybase proof

I hereby claim:

  • I am micrypt on github.
  • I am micrypt (https://keybase.io/micrypt) on keybase.
  • I have a public key whose fingerprint is 9A15 7263 51D8 46D3 187D C471 A8FD A723 1B27 6341

To claim this, I am signing this object:

Song: Beast
Album: Muse
你 感慨
Ni gan kai
You heave a sigh
他 澎湃
Ta peng pai
He’s on an upsurge
@micrypt
micrypt / install.sh
Created August 27, 2012 01:09
Building Chromium on OS X
# Install depot_tools
$ mkdir chromium
$ cd chromium/
$ gclient config https://src.chromium.org/chrome/trunk/src
$ svn ls https://src.chromium.org/chrome
$ gclient sync --revision src@153389
$ cd src/chrome
$ xcodebuild -project chrome.xcodeproj -configuration Debug -target chrome
package git
import "fmt"
import "crypto/sha1"
import "io"
import "strconv"
func getGitSha(data) string {
h := sha1.New()
io.WriteString(h, "blob "+strconv.Itoa(len(data)+1)+"\x00"+data+"\n")
===================
AMPIFY PROTOTYPE
===================
LEGEND:
[x] - Prefined properties from outer scope
{name} [x] - Predefined item
-------------------
Hub management app
@micrypt
micrypt / error.sh
Created July 4, 2012 11:47
Requests error
SyntaxError: ('invalid syntax', ('/Users/micrypt/.virtualenvs/crypt/lib/python2.7/site-packages/requests/packages/chardet2/test.py', 8, 27, " print(f.ljust(60), end=' ')\n"))