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
!(function () { | |
console.log('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
<!DOCTYPE html> | |
<!--Source: http://danzel.github.io/Leaflet.utfgrid/example/map.html//--> | |
<html> | |
<head> | |
<script src="http://cdn.leafletjs.com/leaflet-0.6.1/leaflet.js"></script> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.1/leaflet.css" /> | |
<script src="http://danzel.github.io/Leaflet.utfgrid/src/leaflet.utfgrid.js"></script> | |
<link rel="stylesheet" href="styles.css" /> | |
</head> | |
<body> |
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 CowboyBook.Handlers.Status do | |
def init({:tcp, :http}, req, opts) do | |
{:upgrade, :protocol, :cowboy_websocket} | |
end | |
def websocket_init(transport_name, req, _opts) do | |
:erlang.start_timer(1000, self(), "Hello!") | |
{:ok, req, nil} | |
end | |
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
Unchecked dependencies for environment dev: | |
* ranch (git://github.com/extend/ranch.git) | |
could not find an app file at _build/shared/lib/ranch/ebin/ranch.app, this may happen when you specified the wrong application name in your deps or if the dependency did not compile (which can be amended with `mix deps.compile`) | |
* cowlib (git://github.com/extend/cowlib.git) | |
could not find an app file at _build/shared/lib/cowlib/ebin/cowlib.app, this may happen when you specified the wrong application name in your deps or if the dependency did not compile (which can be amended with `mix deps.compile`) | |
* cowboy (git://github.com/extend/cowboy.git) | |
could not find an app file at _build/shared/lib/cowboy/ebin/cowboy.app, this may happen when you specified the wrong application name in your deps or if the dependency did not compile (which can be amended with `mix deps.compile`) | |
** (Mix) Can't continue due to errors on dependencies |
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 ChatExperiment.Mixfile do | |
use Mix.Project | |
def project do | |
[ app: :chat_experiment, | |
version: "0.0.1", | |
elixir: "~> 0.12.0", | |
deps: deps ] | |
end |
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 DumbModule do | |
@type dumb_type :: :a | :b | |
@spec dumb_function(dumb_type) :: dumb_type | |
def dumb_function(_data) do | |
:c | |
end | |
end |
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
var Colors = [ | |
[142, 161, 108], | |
[194, 207, 48], | |
[254, 199, 0], | |
[255, 137, 0], | |
[211, 67, 43], | |
[187, 41, 82], | |
[142, 30, 95], | |
[222, 74, 182], | |
[153, 0, 236], |
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 Feedme.Parsers.RSS2 do | |
alias Feedme.Feed | |
alias Feedme.Entry | |
alias Feedme.MetaData | |
alias Feedme.Image | |
alias Feedme.Enclosure | |
def valid?(document) do | |
has_version = document | |
|> XmlNode.first("/rss") |
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
" source ~/.vim/dwiw-loader.vim | |
set nocompatible | |
filetype off | |
"set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
"Plugins |
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
macro choice(*parsers) | |
current_column = @column_number | |
begin | |
{% for name, index in parsers %} | |
{{name}} | |
{% if index < parsers.size - 1 %} | |
rescue | |
{% end %} | |
end | |
end |
OlderNewer