This file contains 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
{ | |
"name": "irc", | |
"active": true, | |
"events": [ | |
"issues", | |
"push", | |
"pull_request" | |
], | |
"config": { | |
"server": "irc.mozilla.org", |
This file contains 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
preproc = "import","package" | |
include "c_comment.lang" | |
include "number.lang" | |
string delim "\"" "\"" escape "\\" | |
string delim "'" "'" escape "\\" | |
string delim "`" "`" escape "\\" multiline |
This file contains 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
impl to_str<T> for T { | |
fn to_str() -> str { "a" } | |
} | |
fn foo<T>(_f:fn()) -> T { fail } | |
fn main() { | |
log(error, | |
// 16 in a row | |
[do foo::<~@&*()>{;}]/_. |
This file contains 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
(require 'cl) | |
(defun swap-windows () | |
"If you have 2 windows, it swaps them." | |
(interactive) | |
(cond ((not (= (count-windows) 2)) | |
(message "You need exactly 2 windows to do this.")) | |
(t | |
(let* ((w1 (first (window-list))) | |
(w2 (second (window-list))) |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include "uv.h" | |
#include "http_parser.h" | |
static uv_stream_t server; | |
static http_parser_settings settings; | |
static uv_buf_t refbuf; |