Comments? [email protected]
- Emacs learning curve?
- Mix of Emacs geeks skewed towards people who’ve been using this for a while (after all, takes a certain commitment to come all the way to an Emacs conference!)
# Copyright (c) 2010, Philip Plante of EndlessPaths.com | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in |
AlertDialog.Builder builder; | |
AlertDialog alertDialog; | |
Context mContext = getApplicationContext(); | |
LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(LAYOUT_INFLATER_SERVICE); | |
View layout = inflater.inflate(R.layout.custom_dialog, | |
(ViewGroup) findViewById(R.id.layout_root)); | |
TextView text = (TextView) layout.findViewById(R.id.text); | |
text.setText("커스텀 다이얼로그..."); |
/* | |
* Fabrizio Calderan, twitter @fcalderan, 2010.11.02 | |
* I had an idea: could Inception movie be explained by a few javascript closures | |
* and variable resolution scope (just for fun)? | |
* | |
* Activate javascript console =) | |
*/ | |
<script> | |
console.group("inception movie"); |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
texts =[u"वाराणसी", u"भौगोलिक", u"उपदर्शन"] | |
signs = [ | |
u'\u0902', u'\u0903', u'\u093e', u'\u093f', u'\u0940', u'\u0941', | |
u'\u0942', u'\u0943', u'\u0944', u'\u0946', u'\u0947', u'\u0948', | |
u'\u094a', u'\u094b', u'\u094c', u'\u094d'] | |
limiters = ['.','\"','\'','`','!',';',',','?'] | |
virama = u'\u094d' |
#!/bin/sh | |
# Suspend, hibernate, restart or shutdown the computer without sudo! | |
# by Chris Wong | |
# Released to the public domain. | |
NAME=$0 | |
usage() { | |
echo "Usage: $NAME suspend|hibernate|restart|shutdown" |
#!/usr/bin/env python | |
import os | |
import urllib2 | |
import json | |
import subprocess | |
user=None | |
repo=None |
package main | |
import ( | |
"fmt" | |
"runtime" | |
"time" | |
) | |
func waitAround(die chan bool) { | |
<- die |
Comments? [email protected]
from xkcdplot import XKCDify | |
import numpy as np | |
import pylab | |
import scipy.stats | |
import matplotlib.pyplot as plt | |
ax = pylab.axes() | |
x = np.linspace(0,5,100) | |
y = np.linspace(0,np.pi/2,100) | |
ax.plot(x,scipy.stats.norm.pdf(x,0,1),'r',lw=1,label="productivity") |
#!/usr/bin/python2 | |
import datetime | |
import subprocess | |
import sys | |
import time | |
start_date=datetime.date(2012,11,1) | |
end_date = datetime.date(2013, 04, 9) |