This file contains hidden or 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
- name: format-mnt-data.service | |
command: start | |
content: | | |
[Unit] | |
Description=Format the data drive | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
ExecStart=/usr/sbin/mkfs -t ext4 /dev/xvdb | |
- name: mnt.mount |
This file contains hidden or 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
// Node.js CheatSheet. | |
// Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
// Download: http://nodejs.org/download/ | |
// More: http://nodejs.org/api/all.html | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html | |
This file contains hidden or 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 Timer do | |
use GenServer | |
@interval 10 * 1_000 | |
# Public API | |
defmodule State do | |
defstruct caller: nil, | |
timer: nil | |
end |
This file contains hidden or 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 Gabex do | |
use Application | |
def start(_type, _args) do | |
import Supervisor.Spec, warn: false | |
{:ok, client} = TwitchEx.start_client! | |
Agent.start_link(fn -> client end, name: ClientServer) | |
children = [ |
This file contains hidden or 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 Gabex do | |
use Application | |
def start(_type, _args) do | |
import Supervisor.Spec, warn: false | |
{:ok, client} = TwitchEx.start_client! | |
Agent.start_link(fn -> client end, name: ClientServer) | |
children = [ |
This file contains hidden or 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
Tirexs.Bulk.store [index: index, refresh: true], @settings do | |
Enum.each(spool, fn(message) -> | |
create timestamp: current_timestamp, | |
user: message.nick, | |
channel: message.channel, | |
message: message.message, | |
meta: json_metadata | |
end) | |
end |
This file contains hidden or 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 gulp = require('gulp') | |
var atomshell = require('gulp-atom-shell') | |
var jade = require('gulp-jade') | |
var browserify = require('browserify') | |
var vss = require('vinyl-source-stream') | |
var reactify = require('reactify') | |
var babelify = require('babelify') | |
var sass = require('gulp-ruby-sass') | |
This file contains hidden or 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
pub struct Point<T> { | |
pub x: T, | |
pub y: T | |
} | |
impl<T> Point<T> where T: Add<T, Output=T> { | |
pub fn offset(&self, offset: &Point<T>) -> Point<T> { | |
Point { x: self.x + offset.x, y: self.y + offset.y } | |
} | |
} |
This file contains hidden or 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
use std::io::fs; | |
fn main() { | |
fs::copy(&Path::new("terminal.png"), &Path::new(env!("OUT_DIR"))) | |
} |
This file contains hidden or 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
#![feature(box_syntax)] | |
extern crate tcod; | |
use tcod::{Console}; | |
use tcod::KeyCode; | |
use tcod::Key::Special; | |
use bound::Bound; | |
use point::Point; | |
use character::Character; | |
use traits::Updates; |