Skip to content

Instantly share code, notes, and snippets.

View asonge's full-sized avatar

Alexander Songe asonge

View GitHub Profile
#!/bin/bash
inotifywatch $@ &
PID=$!
read
kill $PID
defmodule Bar do
use Foo
def("OMG") do
"ok"
end
end
""" A stylish alternative for caching your map tiles.
TileStache is a Python-based server application that can serve up map tiles
based on rendered geographic data. You might be familiar with TileCache
(http://tilecache.org), the venerable open source WMS server from MetaCarta.
TileStache is similar, but we hope simpler and better-suited to the needs of
designers and cartographers.
Documentation available at http://tilestache.org/doc/
"""
#include "erl_nif.h"
#include "inttypes.h"
#include "string.h"
#include "stdint.h"
#include "stdio.h"
#include "portaudio.h"
#include "erlaudio_drv.h"
#include "assert.h"
static void erlaudio_ringbuf_init(struct erlaudio_ringbuf *buf, size_t length) {
(ns recipiece.core
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]
[om-bootstrap.panel :as p]
[om-tools.dom :as d :include-macros true]))
(enable-console-print!)
(def app-state (atom {
:cabinet [
Sencha Cmd v5.0.2.270
[INF] Processing Build Descriptor : default
[WRN] The application was last modified by a newer version of Sencha Cmd (5.0.3.276), current is 5.0.2.270. Please install a newer Sencha Cmd version comptible with 5.0.3.276.
[INF] Loading app json manifest...
[INF] Writing content to /Users/alex/work/aerion-dashboard/ext/bootstrap.js
[INF] Writing content to /Users/alex/work/aerion-dashboard/ext/bootstrap.json
[WRN] C1014: callParent has no target (this.callParent in Ext.form.field.Picker.onOtherFocus) -- /Users/alex/work/aerion-dashboard/ext/ext/src/form/field/Picker.js:325
[WRN] C1014: callParent has no target (me.callParent in Ext.form.field.Tag.mimicBlur) -- /Users/alex/work/aerion-dashboard/ext/ext/src/form/field/Tag.js:1298
[WRN] C1014: callParent has no target (me.callParent in Ext.grid.plugin.RowEditing.startEditByClick) -- /Users/alex/work/aerion-dashboard/ext/ext/src/grid/plugin/RowEditing.js:278
[WRN] C1014: callParent has no target (this.callParent in Ext.rtl.selection.CellModel.d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php [L]
defmodule Xmerl do
import Record
defrecord(:xmlText, extract(:xmlText, from_lib: "xmerl/include/xmerl.hrl"))
end
require Xmerl
test = IO.inspect Xmerl.xmlText(value: "Test")
IO.inspect Xmerl.xmlText(test, :value)
defmodule Shell.Mixfile do
use Mix.Project
def project do
[
app: :shell,
version: "0.0.1",
elixir: "~> 1.0",
deps: deps,
escript: [
# Invoke via: elixir --erl '-noinput' --no-halt shelltest.exs
defmodule ShellTest do
def start do
:user_drv.start([:'tty_sl -c -e',{__MODULE__,:start_loop,[]}])
end
def start_loop do
spawn_link(&loop/0)