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
{-# LANGUAGE OverloadedStrings #-} | |
import Network.Wai | |
import Network.Wai.Handler.Warp | |
import Network.HTTP.Types (status200) | |
import Blaze.ByteString.Builder (copyByteString) | |
import Data.Monoid | |
main = do | |
let port = 8080 |
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" | |
"net/http" | |
) | |
const ( | |
port = ":8080" | |
) |
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
defmodule Handler do | |
def init(_type, req, []) do | |
{:ok, req, :no_state} | |
end | |
def handle(request, state) do | |
{ :ok, reply } = :cowboy_req.reply( | |
200, | |
[ {"content-type", "text/plain"} ], | |
"Hello World", |
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
extension NSImage { | |
class func imageNamed(name: String, inBundle bundle: NSBundle?) -> NSImage? { | |
var image = NSImage(named: name) | |
if let image = image { | |
return image | |
} | |
image = bundle?.imageForResource(name) | |
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
Verifying that +sascha_ is my openname (Bitcoin username). https://onename.io/sascha_ |
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
# This script is based on the script provided at http://stackoverflow.com/questions/9258344/xcode-better-way-of-incrementing-build-number | |
# The only difference is, that it uses hexadecimal build numbers instead of decimal ones. | |
# For instructions on how to use this script, see the link above. | |
#!/bin/sh | |
if [ $# -ne 1 ]; then | |
echo usage: $0 plist-file | |
exit 1 |
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 [ | |
'require', | |
'jquery', | |
'common_libs' | |
], (require) -> | |
require [ | |
'jquery', | |
'use!backbone', | |
'app/router', | |
'app/views/menu/menu', |
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
define [ | |
'jquery' | |
'use!jqueryui', | |
'use!hoverintent', | |
'use!mailcheck', | |
'use!datepicker', | |
'use!ujs', | |
'use!validations' | |
], ($) -> | |
# do stuff |
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
modules: | |
- name: 'common_libs' | |
exclude: ['jquery'] | |
- name: 'application' | |
exclude: ['jquery', 'common_libs'] | |
- name: 'common' | |
exclude: ['jquery', 'common_libs'] | |
paths: | |
jquery: 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min' | |
jqueryui: 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.19/jquery-ui.min' |
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 [ | |
'order!jquery', | |
'order!jqueryui', | |
'order!hoverintent', | |
'order!mailcheck', | |
'order!datepicker', | |
'order!ujs', | |
'order!validations' | |
], ($) -> | |
$(document).ready () -> |
NewerOlder