Skip to content

Instantly share code, notes, and snippets.

View goatandsheep's full-sized avatar
⛸️
carving my own path

Kemal Ahmed goatandsheep

⛸️
carving my own path
View GitHub Profile
function genfocin(object, original) {
return function() {
var text = $(object).val();
if (text == original) {
$(object).val("");
}
};
}
function genfocout(object, original) {

Git Cheat Sheet

Commands

Getting Started

git init

or

@yamingd
yamingd / twisted-tornado-cb.py
Created May 21, 2014 03:47
Twisted Tornado Couchbase Aync Operation Demo
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Copyright 2009 Facebook
#
# 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
@openyk
openyk / test.php
Created March 10, 2014 22:30
Stripe Custom Form - without page refresh
<?php session_start(); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Stripe Getting Started Form</title>
<!-- The required Stripe lib -->
<script type="text/javascript" src="https://js.stripe.com/v2/"></script>
@rxaviers
rxaviers / gist:7360908
Last active April 26, 2024 06:50
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@sartak
sartak / a.md
Last active March 22, 2024 22:16
Anki 2 annotated schema
@didip
didip / supervisord-example.conf
Created January 30, 2011 05:10
Example configuration file for supervisord.conf
[unix_http_server]
file=/tmp/supervisor.sock ; path to your socket file
[supervisord]
logfile=/var/log/supervisord/supervisord.log ; supervisord log file
logfile_maxbytes=50MB ; maximum size of logfile before rotation
logfile_backups=10 ; number of backed up logfiles
loglevel=error ; info, debug, warn, trace
pidfile=/var/run/supervisord.pid ; pidfile location
nodaemon=false ; run supervisord as a daemon