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
;; namespaces | |
;; macro | |
;; P5.js | |
(ns p5.core | |
(:require [vecvec.v2d :as v2d])) | |
;; operation | |
(enable-console-print!) | |
;;;; STATE |
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 Tree do | |
@moduledoc false | |
def create_job(reducer_pid, func) do | |
receive do | |
job_input -> send(reducer_pid, func.(job_input)) | |
end | |
end | |
def mappers(_, _, [], job_pids), do: job_pids |
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
(defrecord Database [host port connection] | |
component/Lifecycle | |
(start [component] | |
(let [conn (connect-to-database host port)] | |
(assoc component :connection conn))) | |
(stop [component] | |
(.close connection) | |
(assoc component :connection nil))) | |
(defrecord Dashboard [database datasources options dashboard] |
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
;;; powerline.el --- fancy statusline | |
;; Name: Emacs Powerline | |
;; Author: Unknown | |
;; Version: 1.0 | |
;; Keywords: statusline | |
;;; Commentary: | |
;; This package simply provides a minor mode for fancifying the status line. |
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
if Rails.env.development? | |
require 'rspec/core/rake_task' | |
require 'rubocop/rake_task' | |
desc "run rspec" | |
RSpec::Core::RakeTask.new(:rspec) | |
desc "run rubocop" | |
RuboCop::RakeTask.new(:rubocop) | |
desc "js tests" | |
task :karma do |
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
#!/bin/bash | |
set -e | |
mkdir -p ~/packages/ | |
cd ~/packages | |
wget -N http://s3-us-west-2.amazonaws.com/portrait-mdm-updater-production-repo/portrait-updater-production-v0.3.deb | |
sudo dpkg -i ~/packages/portrait-updater-production-v0.3.deb | |
dpkg -s portrait-mdm-updater | grep "Version" | tr -d " " |
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
#!/bin/bash | |
set -e | |
mkdir -p ~/packages/ | |
cd ~/packages | |
wget -N http://s3-us-west-2.amazonaws.com/portrait-mdm-production-repo/portrait-production-v1.3.deb | |
sudo dpkg -i ~/packages/portrait-production-v1.3.deb | |
dpkg -s portrait-mdm | grep "Version" | tr -d " " |
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
#!/bin/bash | |
sudo rm /var/lib/apt/lists/* -vf | |
set -e | |
sudo apt-get update | |
sudo apt-get install -y --force-yes autoconf bison build-essential libssl-dev libyaml-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev unzip | |
cd $HOME | |
wget -N http://s3-us-west-2.amazonaws.com/portrait-dependencies/ruby-build-master.zip | |
unzip -o ruby-build-master.zip | |
cd ruby-build-master/ | |
sh install.sh |
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 file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout somewhen, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! |
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
module.exports = function ( grunt ) { | |
/** | |
* Load required Grunt tasks. These are installed based on the versions listed | |
* in `package.json` when you do `npm install` in this directory. | |
*/ | |
grunt.loadNpmTasks('grunt-contrib-clean'); | |
grunt.loadNpmTasks('grunt-contrib-copy'); | |
grunt.loadNpmTasks('grunt-contrib-jshint'); | |
grunt.loadNpmTasks('grunt-contrib-concat'); |
NewerOlder