Skip to content

Instantly share code, notes, and snippets.

print "hello world"
http://www.youtube.com/watch?v=AWtwkrGpp4w
@euphoris
euphoris / cd_hook.sh
Created August 20, 2012 16:20 — forked from dahlia/cd_hook.sh
[virtualenvwrapper] automatic workon hook on cd
export PROJECTS_HOME="$HOME/Projects"
function has_virtualenv__() {
if [[ ${PWD##$PROJECTS_HOME} != $PWD ]]; then
IFS="/" read -ra ADDR <<< "${PWD##$PROJECTS_HOME}"
venvname=${ADDR[1]}
cur_env=${VIRTUAL_ENV##$WORKON_HOME}
if [[ $venvname != "" ]] && [[ -d "$WORKON_HOME/$venvname" ]]; then
if [[ ${cur_env:1} != $venvname ]]; then
workon "$venvname"
$ rust build bindgen.rc
main.rs:1:4: 1:27 error: failed to resolve import: core::hashmap::HashMap
main.rs:1 use core::hashmap::HashMap;
^~~~~~~~~~~~~~~~~~~~~~~
gen.rs:2:4: 2:27 error: failed to resolve import: core::hashmap::HashSet
gen.rs:2 use core::hashmap::HashSet;
^~~~~~~~~~~~~~~~~~~~~~~
error: failed to resolve imports
error: aborting due to 3 previous errors
$ RUST_LOG=rustc=1,::rt::backtrace rustc ice.rs
rust: task failed at 'assertion failed: !bcx.ccx().maps.moves_map.contains(&arg_expr.id)', /Users/jae-myoungyu/Documents/rust-0.6/src/librustc/middle/trans/callee.rs:705
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /Users/jae-myoungyu/Documents/rust-0.6/src/librustc/rustc.rc:357
rust: domain main @0x7fc2a0818e10 root task failed
@euphoris
euphoris / words_ko.html
Last active December 18, 2015 21:29 — forked from dahlia/words_ko.html
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- <title>Words</title> -->
<title>글</title>
<style type="text/css">
body { font-size:18px; }
.wrapper { max-width: 600px; margin:0 auto; }
</style>
(earthweb1)jmair:earthweb jae-myoungyu$ earthreader server ~/repo/earthreader/web/rss/
Traceback (most recent call last):
File "/Users/jae-myoungyu/ENV/earthweb1/bin/earthreader", line 8, in <module>
load_entry_point('EarthReader-Web==0.1.1', 'console_scripts', 'earthreader')()
File "/Users/jae-myoungyu/repo/earthreader/earthweb/earthreader/web/command.py", line 119, in main
args.function(args)
File "/Users/jae-myoungyu/repo/earthreader/earthweb/earthreader/web/command.py", line 50, in server_command
if args.profiler:
AttributeError: 'Namespace' object has no attribute 'profiler'
ERROR:earthreader.web.app:Exception on /feeds/ [POST]
Traceback (most recent call last):
File "/Users/jae-myoungyu/ENV/earthweb1/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/Users/jae-myoungyu/ENV/earthweb1/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/jae-myoungyu/ENV/earthweb1/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/jae-myoungyu/ENV/earthweb1/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
(earthweb1)jmair:earthweb jae-myoungyu$ earthreader server ~/Dropbox/rss
serving on http://0.0.0.0:5000
ERROR:waitress:Exception when serving /entries/
Traceback (most recent call last):
File "/Users/jae-myoungyu/ENV/earthweb1/lib/python2.7/site-packages/waitress/channel.py", line 337, in service
task.service()
File "/Users/jae-myoungyu/ENV/earthweb1/lib/python2.7/site-packages/waitress/task.py", line 173, in service
self.execute()
File "/Users/jae-myoungyu/ENV/earthweb1/lib/python2.7/site-packages/waitress/task.py", line 392, in execute
app_iter = self.channel.server.application(env, start_response)
(earthweb1)jmair:earthweb jae-myoungyu$ earthreader server --debug ~/Dropbox/rss
Traceback (most recent call last):
File "/Users/jae-myoungyu/ENV/earthweb1/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
File "/Users/jae-myoungyu/repo/earthreader/earthweb/earthreader/web/wsgi.py", line 59, in __call__
File "/Users/jae-myoungyu/ENV/earthweb1/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
File "/Users/jae-myoungyu/ENV/earthweb1/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception