Solution to https://twitter.com/nolanlawson/status/578948854411878400.
doSomething().then(function () {
#!/usr/bin/python | |
from __future__ import unicode_literals | |
import os, commands, sys | |
def install(): | |
# get required details | |
root_pwd = get_root_password() | |
db_name, db_pwd = get_new_db_details() | |
# install path |
--- | |
- hosts: all | |
user: root | |
become: yes | |
become_user: root | |
tasks: | |
- name: Set hostname | |
hostname: name={{ hostname }} | |
- name: install packages |
<?php | |
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); | |
ini_set('display_errors', 1); | |
function formatcurrency($floatcurr, $curr = 'USD') | |
{ | |
/** | |
* A list of the ISO 4217 currency codes with symbol,format and symbol order |
Solution to https://twitter.com/nolanlawson/status/578948854411878400.
doSomething().then(function () {
You are working on a Rails app that uses a gem named abc
. This gem is hosted on RubyGems and the source code of the gem is available at https://github.com/your-username/abc.
You created a new branch locally for your gem (new-feature
). You wanted to modify the gem and load it directly to your local Rails app. And, you don't want to push the gem changes to GitHub and publish the gem to RubyGems just yet.
You want all the changes that you made in your local gem directory get reflected immediately in your local Rails app without requiring you to run gem build
and gem install
command in the gem's local directory.
from MySQLdb.cursors import SSDictCursor | |
def iterate_query(query, connection, arraysize=1): | |
c = connection.cursor(cursorclass=SSDictCursor) | |
c.execute(query) | |
while True: | |
nextrows = c.fetchmany(arraysize) | |
if not nextrows: | |
break |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.