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
main: func { | |
"Hello world" println() | |
list := ArrayList<Int> new() | |
for (i in 0..10) list add(i) | |
stringList := list map(|x| (x as Int) toString() + "blah ") | |
stringList each(|x| (x as String) println()) | |
} |
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
import structs/ArrayList | |
main: func { | |
list := ArrayList<int> new() | |
for (i in 0..10) list add(i) | |
anotherList := list filter(|x| x <= 5) | |
anotherList each(|x| (x toString()) println() ) | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Reflection; | |
// Examples.cs | |
// based on the RequireRouteValuesAttribute found on SO at: | |
// http://stackoverflow.com/questions/1045316/asp-net-mvc-ambiguous-action-methods |
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
PS C:\> gem install rdiscount --platform=ruby | |
Temporarily enhancing PATH to include DevKit... | |
Building native extensions. This could take a while... | |
Successfully installed rdiscount-1.6.5 | |
1 gem installed | |
Installing ri documentation for rdiscount-1.6.5... | |
Installing RDoc documentation for rdiscount-1.6.5... | |
PS C:\> ruby -rubygems -e "require 'rdiscount'; puts RDiscount.new('**Hello RubyInstaller**').to_html" | |
<p><strong>Hello RubyInstaller</strong></p> |
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
exec = require('child_process').exec | |
spawn = require('child_process').spawn | |
sha1Hash = (path, cb) -> | |
curr = process.cwd() | |
process.chdir path | |
bleh = '' | |
exec 'git log -1', (er, o, e) -> | |
process.chdir curr | |
sha1 = o.split('\n')[0].replace('commit ', '')[0..7] |
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
Blah: class { | |
bar: Func | |
baz: Func | |
foo: func() { | |
derp: String | |
this bar = func { | |
derp = "derp" | |
} | |
this baz = func { |
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
ooc-glu, Compiling regenerated modules... | |
gcc -std=gnu99 -Wall -g -I/home/jeff/src/rock/libs/headers/ -Irock_tmp -w -c rock_tmp/ooc-glu/glu/Glu.c -o rock_tmp/glu_Glu.o -I/home/jeff/src/rock/libs/headers/ -Irock_tmp -D__OOC_USE_GC__ -DGC_NO_THREAD_REDIRECTS -I.libs/source -I.libs/sdk -I.libs/out -I.libs/ooc-sdl -I.libs/ooc-glu -w -lGLU -lGL | |
gcc -std=gnu99 -Wall -g -I/home/jeff/src/rock/libs/headers/ -Irock_tmp -w .libs/source-linux32.a .libs/sdk-linux32.a .libs/out-linux32.a .libs/ooc-sdl-linux32.a .libs/ooc-glu-linux32.a .libs/source-linux32.a .libs/sdk-linux32.a .libs/out-linux32.a .libs/ooc-sdl-linux32.a .libs/ooc-glu-linux32.a -D__OOC_USE_GC__ -DGC_NO_THREAD_REDIRECTS -I.libs/source -I.libs/sdk -I.libs/out -I.libs/ooc-sdl -I.libs/ooc-glu -o icmadness -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -lSDL -lGLEW -lGL -lGLU -lm -lSDL_image -lftgl -I/usr/include/FTGL -I/usr/include/freetype2 -lpthread /home/jeff/src/rock/libs/linux32/libgc.a | |
.libs/source-linux32.a(gfx_Texture.o): In function `gfx_Texture__T |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Client.Framework; | |
using NHibernate; | |
namespace Example.Specs.Creators | |
{ | |
// Creator<T> provides an framework for defining streamlined, *test-only* factories for domain entities.. |
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 Error: | |
element["insertAdjacent" + (html instanceof Element ? "Element" : "HTML")] is not a function | |
http://localhost:8080/scripts/zepto.js | |
Line 145 | |
the zepto.js is 5ecaa (HEAD of the zepto repo) | |
backbone.js is 261059 (HEAD of backbone's repo) | |
the stack looks like.. |
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
< pfox__> Where would do I need to look in the gnome-shell | |
code to see the signals exposed for window | |
creation/destruction and workspace switching? can i | |
keep it confined to the js? | |
08:35 -!- elleuca [[email protected]] has | |
left #gnome-shell [] | |
08:36 < milanbv> pfox__: they are in Mutter | |
08:36 < milanbv> but you can use them from JS | |
08:37 < milanbv> the code is in | |
~/gnome-shell/source/mutter/src/core/workspace.c |
OlderNewer