Skip to content

Instantly share code, notes, and snippets.

* Rebuilt URL to: https://37.60.249.217/
* Trying 37.60.249.217...
* TCP_NODELAY set
* Connected to 37.60.249.217 (37.60.249.217) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
CApath: none
@fawx
fawx / got_these_two_sacks.py
Created October 18, 2017 16:54
Too bad you can't get a voodoo globe and make the world spin around really fast and freak everyone out.
messages = [
"Have you ever seen a child, on his way to school, have a car drive past and splash him, and then he just stands there and thinks if he should just go to school or go home and change and be late... And then I drove past and splashed him again!",
"Too bad you can\'t get a voodoo globe and make the world spin around really fast and freak everyone out.",
"Before you criticize someone, you should walk a mile in their shoes, that way when you criticize them, you\'re a mile away and you have their shoes.",
"I bet a real big problem in Yodeling class is people just coming and yodeling right off the bat. You see, we build to that.",
"I\'d like to see a nude opera, because when they hit the high notes I bet you can really see it in those genitals.",
"Ambition is like a venus fly trap. If a frog were to sit on it, the fly trap could bite and bite but it wouldn\'t hurt the frog because it only has tiny little plant teeth. Then some other stuff could happen
tell application "Google Chrome"
make new window
end tell
tell application "iTerm"
set myterm to (make new terminal)
tell myterm
set mysession to (make new session at the end of sessions)
tell mysession
exec command "/bin/bash -l"
// Map Django language codes to valid TinyMCE language codes.
// There's an entry for every TinyMCE language that exists,
// so if a Django language code isn't here, we can default to en.
var language_codes = {
'ar': 'ar',
'ca': 'ca',
'cs': 'cs',
'da': 'da',
# Copyright 2013 Thatcher Peskens
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
├── Dockerfile
├── README.md
├── _gulp
│   ├── config.js
│   ├── tasks
│   └── util
├── app
│   ├── __init__.py
│   ├── __init__.pyc
│   ├── __pycache__
tell application "Google Chrome"
make new window
end tell
tell application "iTerm"
set myterm to (make new terminal)
tell myterm
set mysession to (make new session at the end of sessions)
tell mysession
exec command "/bin/bash -l"
def get_total_weight_in_oz(request, order_form):
# sort the shopping cart by skus so we can match it up with
# an actual queryset of product data (mostly for the weights)
cart_by_skus = sorted( request.cart , key=lambda item: item.sku )
skus = [item.sku for item in cart_by_skus]
quantities = [item.quantity for item in cart_by_skus]
products = ProductVariation.objects.filter(product__sku__in=skus).order_by('sku')
discount = ''
discounted_products = ''
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
.sql
.log
" bundles
filetype off
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'kien/ctrlp.vim'
Bundle 'tpope/vim-haml'
Bundle 'JulesWang/css.vim'