Skip to content

Instantly share code, notes, and snippets.

View yogsototh's full-sized avatar

Yann Esposito yogsototh

View GitHub Profile
@yogsototh
yogsototh / bug.elm
Created May 28, 2015 09:22
elm Task or port bug?
import Http
import Markdown
import Html exposing (Html)
import Task exposing (Task, andThen)
import Time exposing (every, second)
main : Signal Html
main = Signal.map Markdown.toHtml readme.signal
@yogsototh
yogsototh / app.elm
Created May 28, 2015 13:53
Error: the notify function has been called synchronously!
import Signal exposing (Address,Mailbox,mailbox)
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (onClick,on,targetValue)
import Task exposing (Task,andThen)
import Http exposing (multipart,stringData)
import Time exposing (every,second)
main : Signal Html
@yogsototh
yogsototh / about.md
Created August 9, 2011 13:39 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@yogsototh
yogsototh / reverseScrolling.ahk
Created August 12, 2011 11:07
Inverse Wheel movement on windows using HotKeys
; Reverse Scrolling Script by How-To Geek
;
; http://www.autohotkey.com/docs/Tutorial.htm
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
WheelUp::
Send {WheelDown}
@yogsototh
yogsototh / yesodfib.hs
Created October 4, 2011 15:05
Yesod cure the "Node.js is cancer"
{-# LANGUAGE TypeFamilies, QuasiQuotes, MultiParamTypeClasses,
TemplateHaskell, OverloadedStrings #-}
import Yesod
data YesodFib = YesodFib
mkYesod "YesodFib" [parseRoutes|
/ HomeR GET
|]
@yogsototh
yogsototh / gist:1670514
Created January 24, 2012 14:46
Solarized Readable bookmark
javascript:(function(){_readableOptions={'text_font':'Goergia,%20Palatino','text_font_monospace':'Inconsolata','text_font_header':'quote(Times%20New%20Roman),%20Times,%20serif','text_size':'20px','text_line_height':'1.5','box_width':'30em','color_text':'#657B83','color_background':'#FDF6E3','color_links':'#B58900','text_align':'justified','base':'web_readability','custom_css':'pre%20{%20%20%20%20background-color:%20#EEE8D5;%20%20%20%20color:%20#586E75;%20%20%20%20padding:%201em;%20%20%20%20overflow:%20auto;}'};if(document.getElementsByTagName('body').length>0);else{return;}if(window.$readable){if(window.$readable.bookmarkletTimer){return;}}else{window.$readable={};}window.$readable.bookmarkletTimer=true;window.$readable.options=_readableOptions;if(window.$readable.bookmarkletClicked){window.$readable.bookmarkletClicked();return;}_readableScript=document.createElement('script');_readableScript.setAttribute('src','http://readable-static.tastefulwords.com/target.js?rand='+encodeURIComponent(Math.random()));docum
@yogsototh
yogsototh / gist:2300481
Created April 4, 2012 11:34
brew mirror-check wget fail
brew mirror-check wget
==> Testing mirrors for wget
==> Downloading http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.bz2
Warning: Failed to create the file
Warning: /Library/Caches/Homebrew/wget-1.13.4.tar.bz2: No such file or
Warning: directory
0,1%
curl: (23) Failed writing body (0 != 1183)
Error: uninitialized constant Formula::DownloadError
Please report this bug:
@yogsototh
yogsototh / brew --config
Created April 5, 2012 21:31
brew devil fail
~ brew --config
HOMEBREW_VERSION: 0.9
HEAD: 4f16573afa069d13c1fe5d4a7ebcf52cc403bed4
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.7.3
Kernel Architecture: x86_64
Xcode: 4.3.2
GCC-4.0: N/A
@yogsototh
yogsototh / defaultComplex.lhs
Created June 17, 2012 16:46
Complex efficiency difference
## First version
We can consider two parts.
The first being mostly some boilerplate[^011].
And the second part more focused on OpenGL and content.
[^011]: Generally in Haskell you need to declare a lot of import lines.
This is something I find annoying.
In particular, it should be possible to create a special file, Import.hs
which make all the necessary import for you, as you generally need them all.
@yogsototh
yogsototh / gist:3032273
Created July 2, 2012 09:27
cabal hell
cabal-dev install
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: inmanis-0.0.0 (user goal)
trying: http-conduit-1.4.1.10 (dependency of inmanis-0.0.0)
trying: base64-bytestring-0.1.2.0 (dependency of http-conduit-1.4.1.10)
trying: attoparsec-0.10.2.0 (dependency of http-conduit-1.4.1.10)
trying: yesod-test-0.2.1 (dependency of inmanis-0.0.0)
trying: HUnit-1.2.4.2/installed-6a8... (dependency of yesod-test-0.2.1)
next goal: yesod-platform (dependency of inmanis-0.0.0)