Skip to content

Instantly share code, notes, and snippets.

@ijaaz
ijaaz / The Cost Of Selling Coffee
Last active August 29, 2015 14:11
The cost of Selling Coffee
---
title: The cost of Selling Coffee
tags: coffee, math, stackedit
published: 12/11/14
date: 12/11/14
---
# The cost of Selling Coffee
@ijaaz
ijaaz / Journal Date.py
Created July 5, 2014 02:23
Journal Date.py
from datetime import date
import console, clipboard
date = date.today()
date = date.strftime('%d-%m-%y')
clipboard.set(date)
console.hud_alert(date, 'success', 2.0)
@ijaaz
ijaaz / 0_reuse_code.js
Created June 5, 2014 12:55
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ijaaz
ijaaz / MD>Docs.md
Created May 21, 2014 20:52
Converting Markdown to Gogle docs

Converting Markdown to Gogle docs

If you are using Markdown(or any of it's flavors), and are using some type of app(Marked, Byword, etc.) to preview the HTML, you can copy the preview's text output to a Google Doc; This works because Google Docs is a WYSIWYG editor that uses HTML for formating.

Try this experiment, copy a website's text onto a google document, and you will find that it saves all of it's original formating , including the text's background

@ijaaz
ijaaz / MD>Docs.nd
Created May 21, 2014 19:53
Converting Markdown to Gogle docs
## Converting Markdown to Gogle docs
If you are using Markdown(or any of it's flavors), and are using some type of
app(Marked, Byword, etc.) to preview the HTML, you can copy the preview's text
output to a Google Doc; This works because Google Docs is a WYSIWYG editor that
uses HTML for formating.
Try this experiment, copy a website's text onto a google document, and you will
find that it saves all of it's original formating , including the text's
background
@ijaaz
ijaaz / 183023.user.js
Last active August 29, 2015 14:01
Swyter Tweaks for Spotify
// ==UserScript==
// @name Swyter Tweaks for Spotify
// @description Mutes the audio ads on play.spotify.com, while they are still being played, so *everyone* is happy.
// @updateURL https://userscripts.org/scripts/source/183023.meta.js
// @downloadURL https://userscripts.org/scripts/source/183023.user.js
// @match https://play.spotify.com/*
// @grant none
// @run-at document-end
// @version 2013.12.04
// @author Swyter
#!/bin/bash
clear
if [[ ! -r ~/GeekSn0w/ver1 ]]; then
echo "[•] Configuring GeekSn0w for the first launch... (this will take a while)"
if [[ -r ~/GeekSn0w/ ]]; then
rm -rf ~/GeekSn0w
fi
mkdir ~/GeekSn0w
cd ~/GeekSn0w
#!/bin/bash
find ~/.dotfiles/ -maxdepth 1 -name '.*' ! -iname ".*.sw*" ! -path ~/.dotfiles/ ! -path ~/.dotfiles/.git ! -path ~/.dotfiles/dotfiles_install -printf "%f:%p\n" | while IFS=":" read FNAME FPATH
do
ln -svf "$FPATH" $HOME/$FNAME
done
@ijaaz
ijaaz / css_resources.md
Created January 14, 2014 18:24 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@ijaaz
ijaaz / python_resources.md
Created January 14, 2014 18:24 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides