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
! | |
? | |
apple | |
art | |
balloon | |
bomb | |
bottle | |
cactus | |
candle | |
car |
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 p; | |
var stream; | |
function foo() { | |
p = new Promise(); | |
stream = TweakWidgets(); | |
stream.once('message', bar); | |
return p; | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Show hidden characters
{ | |
"undef": true, | |
"strict": false, | |
"browser": true, | |
"loopfunc": true, | |
"asi": false, | |
"eqeqeq": true, | |
"evil": false, | |
"shadow": false, | |
"unused": true, |
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
$ rust run tetrissums.rs | |
grid.rs:9:27: 9:32 error: Illegal anonymous lifetime: anonymous lifetimes are not permitted here | |
grid.rs:9 highlight: Option<&'self Piece>, | |
^~~~~ | |
pieces.rs:4:15: 4:19 error: Illegal anonymous lifetime: anonymous lifetimes are not permitted here | |
pieces.rs:4 grid: &'self Grid, |
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
#!/usr/bin/env python | |
import os | |
import re | |
import subprocess | |
import requests | |
repo_dir = "{HOME}/src/kitsune".format(**os.environ) | |
environments = { |
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
def to_cli_args(*args, **kwargs): | |
cmd = [] | |
for k, v in kwargs.items(): | |
short = len(k) == 1 | |
if short: | |
cmd.append('-' + k) | |
if v is not True: | |
cmd.append(v) | |
else: | |
if v is True: |
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
>= tests | |
for fx: | |
{for fx}null{/for} | |
{for fx,win}win{/for} | |
{for fx,winxp}winxp{/for} | |
{for fx,win7}win7{/for} | |
{for fx,win8}win8{/for} | |
{for fx,mac}mac{/for} | |
{for fx,linux}linux{/for} |
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 --git a/kitsune/offline/tests/test_views.py b/kitsune/offline/tests/test_views.py | |
index e3dc13b..b65155f 100644 | |
--- a/kitsune/offline/tests/test_views.py | |
+++ b/kitsune/offline/tests/test_views.py | |
@@ -16,6 +16,13 @@ from kitsune.wiki.tests import document, revision | |
class OfflineViewTests(TestCase): | |
+ def setUp(self): | |
+ super(OfflineViewTests, self).setUp() |
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
fn foo<T:Copy>(arr: ~[T]) -> ~[T] { | |
~[arr[0]] | |
} | |
fn main() { | |
let bar = ~[1,2,3]; | |
for foo(bar).iter().advance |i| { | |
println(fmt!("%?", i)); | |
} | |
} |