Skip to content

Instantly share code, notes, and snippets.

View ldong's full-sized avatar
❤️
Love & Peace

Alan Dong ldong

❤️
Love & Peace
  • Sunnyvale, CA
View GitHub Profile
sudo chflags hidden /PATH/To/Your/APP
killall -KILL Dock

As simple as that.

Snippets

assert

assert Condition, 'Error Message'

i.e.

assert 1 == 0, 'This test failed somehow

@ldong
ldong / useful_python_libs.md
Last active April 21, 2020 04:05
Useful python modules whether 3rd party or builtin

Useful python libs

Prep

Before you go, I just want to make sure you finished reading The Python Standard Library.

Let's Go

Here's a list of useful libs that can be used to extend your python abilities.

@ldong
ldong / python_fast_track_june_3.md
Last active August 29, 2015 14:02
Python talk 6/3/2014

Notes

Author: Rick Copland

Date: 6/3/2014

Useful builtins libs

  1. zip enumerate
@ldong
ldong / uri.js
Last active August 29, 2015 14:02 — forked from jlong/uri.js
var parser = document.createElement('a');
// var parser = document.querySelector('CSS_SELECTOR')
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
@ldong
ldong / crack recaptcha.md
Last active March 13, 2020 21:25
crack recaptcha

#Crack reCAPTCHA

Dependencies

pip install pillow
brew install libpng
brew install libjpeg
pip install PIL --allow-external PIL --allow-unverified PIL
@ldong
ldong / restful_api.md
Created June 10, 2014 16:36
Tech talk of restful api

Tech Talk

Restful API

URL/api/ids

GET
PUT
PATCH
@ldong
ldong / tech_talk_june_17.md
Created June 17, 2014 17:01
Tech Talk for Ming and PyMongo

June 17 Tech Talk

Author: Rick Copeland

Ming

What is Ming? MongoDB driver

MongoDB

MongoDB Terminology