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
as if it matters what we believe, | |
or think we know is true. | |
as if it matters what we do, or how we feel. | |
as if all-life-on-Earth cares what happens to us, | |
or to our species. | |
as if it makes a difference | |
whether we talk about what’s ahead |
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
package main | |
import ( | |
"fmt" | |
"encoding/json" | |
"launchpad.net/goyaml" | |
) | |
type Bar struct { |
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
<meta content="soundcloud:sound" property="og:type" /> | |
<meta content="http://soundcloud.com/oliver-hookins/space-hideout" property="og:url" /><meta content="Space Hideout" property="og:title" /> | |
<meta content="http://i1.sndcdn.com/artworks-000037505804-vy2r3t-t500x500.jpg?86be403" property="og:image" /> | |
<meta content="My latest composition, which I put together over the last week.Let me know what you think... I hope you enjoy it!" property="og:description" /><meta content="19507961798" property="fb:app_id" /> | |
<meta content="soundcloud" property="twitter:site" /><meta content="SoundCloud" property="og:site_name" /> | |
<meta content="video" name="medium" /><meta content="98" property="og:video:height" /> | |
<meta content="460" property="og:video:width" /><meta content="application/x-shockwave-flash" property="og:video:type" /> | |
<meta content="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F73515637&color=3b5998&auto_play=true&show_artwork=false&origin=facebook" pr |
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
$ cabal-dev build | |
Building diagrams-svg-0.6.1... | |
Preprocessing library diagrams-svg-0.6.1... | |
[1 of 3] Compiling Graphics.Rendering.SVG ( src/Graphics/Rendering/SVG.hs, dist/build/Graphics/Rendering/SVG.o ) | |
src/Graphics/Rendering/SVG.hs:228:20: | |
Not in scope: `colorToSRGBA' | |
Perhaps you meant `colorToRGBA' (imported from Diagrams.Prelude) | |
src/Graphics/Rendering/SVG.hs:232:20: | |
Not in scope: `colorToSRGBA' |
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
// ciphertext is a []byte | |
cipherhex := make([]string, len(ciphertext)) | |
for i, v := range ciphertext { | |
cipherhex[i] = fmt.Sprintf("%02x", v) | |
} | |
return strings.Join(cipherhex,"") |
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
import os | |
from peopleflow import app | |
import unittest | |
import tempfile | |
from os import environ |
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
(hasgeek_env) $ python runserver.py | |
Traceback (most recent call last): | |
File "runserver.py", line 2, in <module> | |
from peopleflow import app | |
File "/Users/deepak/code/work/hasgeek/peopleflow/peopleflow/__init__.py", line 9, in <module> | |
from flaskext.assets import Environment, Bundle | |
ImportError: No module named assets |
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
# Y Combinator in Ruby, Take 2 | |
# | |
# Based off an explanation of Y Combinator here: | |
# http://article.gmane.org/gmane.comp.lang.perl.perl-mongers.boston/1518 | |
# | |
# Also inspired by this post from nex3: | |
# http://nex-3.com/posts/43-fun-with-the-y-combinator-in-ruby | |
# Here's an explanation of the Y-Combinator. It won't work in | |
# Perl because Perl doesn't do lexical binding of input |
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
src/Graphics/BarChart/Rendering.hs:75:14: | |
Could not deduce (Renderable Diagrams.TwoD.Text.Text b0) | |
arising from a use of `text' | |
from the context (Measurable a, Show a) | |
bound by the type signature for | |
drawBarChart :: (Measurable a, Show a) => | |
Config -> BarChart a -> Diagram SVG R2 | |
at src/Graphics/BarChart/Rendering.hs:(72,1)-(76,76) | |
Possible fix: | |
add (Renderable Diagrams.TwoD.Text.Text b0) to the context of |
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
import Diagrams.Prelude | |
import Diagrams.Backend.SVG.CmdLine | |
eff = text "F" <> square 1 # lw 0 | |
example = eff # rotateBy (1/7) | |
main = defaultMain example |