This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tz = require('timezone'); | |
var loaded = tz(require('timezone/fr_FR'), require('timezone/America/Detroit')); | |
var fr = loaded('America/Detroit', 'fr_FR'); | |
console.log(fr('*', '%c')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add to your `.bash_profile`. If you do something that is incredibly | |
# destructive, like `git push --force origin HEAD`, you can then | |
# delete it, how ever many times you've run it, from your history | |
# using `hidegrep --force`. | |
function hidegrep() | |
{ | |
while true; do | |
hist=$(history | grep -e "$1" | head -n 1) | |
if [ -z "$hist" ]; then break; fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PORT=6000 /tmp/node-v0.6 benchmark/http_simple.js & | |
pid=$! | |
sleep 1 | |
for i in {0..2}; do | |
ab -t 30 -c 100 http://127.0.0.1:6000/bytes/123 2>/dev/null | grep Req | |
done | |
kill $pid | |
sleep 60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Xen Minimal OS! | |
start_info: 0xb10000(VA) | |
nr_pages: 0x6a400 | |
shared_inf: 0xd5d6d000(MA) | |
pt_base: 0xb13000(VA) | |
nr_pt_frames: 0x9 | |
mfn_list: 0x967000(VA) | |
mod_start: 0x0(VA) | |
mod_len: 0 | |
flags: 0x0 |
I want to edit in one tab, run what I edit in the other. Typical multi-view stuff. I've used Terminal.app for the last few years. Lately, however, after not long enough, Terminal gets laggy when I switch between tabs.
The stutter between edit and run is annoying, an unnacceptable. One of the major reason I've chosen to work with character based UI is because it is snappy. There shouldn't be a lag while a screen of UTF-8 is rendered in a monospace font.
The lag gets progressively longer, chipping at my productivity with irritation. The only solution is to kill all my Terminals, which essentially kills my flow. Terminal.app won't remember where I was for me. I have to initialize ever tab.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The MIT License | |
Copyright (c) 2012 Alan Gutierrez | |
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>={@title}</title> | |
</head> | |
<body> | |
<h1>People</h1> | |
%{@people { job: "programmer" }, (people) =>}% | |
<p>There are ={people.length} programmers among the people.</p> | |
<ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aug 8 11:19:37 celje unbound: [6707:0] debug: caught signal SIGTERM | |
Aug 8 11:19:37 celje unbound: [6707:0] info: service stopped (unbound 1.4.8). | |
Aug 8 11:19:37 celje unbound: [6707:0] debug: stop threads | |
Aug 8 11:19:37 celje unbound: [6707:0] debug: cleanup. | |
Aug 8 11:19:37 celje unbound: [6707:0] info: server stats for thread 0: 0 queries, 0 answers from cache, 0 recursions, 0 prefetch | |
Aug 8 11:19:37 celje unbound: [6707:0] info: server stats for thread 0: requestlist max 0 avg 0 exceeded 0 | |
Aug 8 11:19:37 celje unbound: [6707:0] info: mesh has 0 recursion states (0 with reply, 0 detached), 0 waiting replies, 0 recursion replies sent, 0 replies dropped, 0 states jostled out | |
Aug 8 11:19:37 celje unbound: [6707:0] debug: cache memory msg=33040 rrset=33040 infra=1316 val=41428 | |
Aug 8 11:19:37 celje unbound: [6707:0] debug: Exit cleanup. | |
Aug 8 11:19:37 celje unbound: [6707:0] debug: switching log to stderr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 4550b08c3a85 pygments/lexers/web.py | |
--- a/pygments/lexers/web.py Sun Jul 17 00:00:59 2011 +0200 | |
+++ b/pygments/lexers/web.py Sun Jul 17 07:25:43 2011 +0000 | |
@@ -1718,16 +1718,18 @@ | |
(r'\s+', Text), | |
(r'#.*?\n', Comment.Single), | |
], | |
+ 'multilineregex': [ | |
+ include('commentsandwhitespace'), | |
+ (r'///', String.Regex, '#pop'), |