sadsadasd
sadasd
<%= files["Flick.png"] %>
- @sntran
- @sdfippinger
-module(helpers). | |
is_pid_alive(Pid) when node(Pid) =:= node() -> | |
is_process_alive(Pid); | |
is_pid_alive(Pid) -> | |
lists:member(node(Pid), nodes()) andalso | |
(rpc:call(node(Pid), erlang, is_process_alive, [Pid]) =:= true). | |
get_current_time() -> | |
Now = calendar:local_time(), |
# Elixir on Erlang | |
# | |
# VERSION 0.13.2 | |
FROM sntran/kerl | |
MAINTAINER Son Tran-Nguyen "[email protected]" | |
RUN apt-get install -y unzip | |
RUN mkdir -p /opt/erlang/elixir | |
RUN cd /opt/erlang/elixir && curl -L -O https://github.com/elixir-lang/elixir/releases/download/v0.13.2/Precompiled.zip && unzip Precompiled.zip |
/* Daniel Ott | |
* entities.css | |
* 31 January 2011 | |
* | |
* Updated: 28 May 2013 | |
* Son Tran | |
* | |
* Adding arrows to thinks makes them more clickable. Right? | |
* Use CSS's :after pseudo-selector to insert hexadecimal values | |
* of html entities into the document. Less markup. More awesome. |
// Ported from Stefan Gustavson's java implementation | |
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf | |
// Read Stefan's excellent paper for details on how this code works. | |
// | |
// Sean McCullough banksean@gmail.com | |
/** | |
* You can pass in a random number generator object if you like. | |
* It is assumed to have a random() method. | |
*/ |
sadsadasd
sadasd
<%= files["Flick.png"] %>
/* Transparent Tabs */ | |
.tabs { | |
list-style: none; | |
padding: 0; | |
overflow: hidden; | |
} | |
.tab { | |
display: block; | |
float: left; |
REBAR=$(shell which rebar || echo ./rebar) | |
REBAR_URL=https://github.com/rebar/rebar/wiki/rebar | |
.PHONY: all test deps clean | |
all: $(REBAR) deps compile start | |
start: | |
./start.sh | |
app: $(REBAR) |
-module ('2d_component'). | |
-behaviour(gen_event). | |
-export([init/1, handle_event/2, terminate/2]). | |
init({X, Y, Width, Height, Rotation}) -> | |
{ok, {X, Y, Width, Height, Rotation}}. | |
handle_event({change, {x, NewX}}, {OldX, OldY, W, H, Rotation}) -> | |
io:format("Entity moved from (~p, ~p) to (~p, ~p).~n", [OldX, OldY, NewX, OldY]), |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
SleekXMPP: The Sleek XMPP Library | |
Copyright (C) 2010 Nathanael C. Fritz | |
This file is part of SleekXMPP. | |
See the file LICENSE for copying permission. | |
""" |
# Refactored from git://gist.github.com/859699.git by ddgromit for swapping | |
fisherYates = (arr) -> | |
i = arr.length | |
if i is 0 then return false | |
while --i | |
j = Math.floor(Math.random() * (i+1)) | |
[arr[i], arr[j]] = [arr[j], arr[i]] # use pattern matching to swap |