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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
while(<>) { | |
s/((\b\w+\b)(\s+\2\b)+)/[$1]/ig; | |
print "$_"; | |
} |
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 | |
dir="$1" | |
shift 1 | |
mkdir "$dir" | |
cd "$dir" | |
bundler init | |
echo "gem 'rails'" >> Gemfile |
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 | |
# Add repositories | |
sudo add-apt-repository -y "deb http://repository.spotify.com stable non-free" | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo add-apt-repository -y ppa:fish-shell/nightly-master | |
echo "deb http://downloads.hipchat.com/linux/apt stable main" | sudo tee \ | |
/etc/apt/sources.list.d/atlassian-hipchat.list | |
sudo add-apt-repository -y ppa:linrunner/tlp | |
sudo apt-add-repository -y ppa:pipelight/stable |
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
(define (foldr func init lst) | |
(if (null? lst) | |
init | |
(func (car lst) (foldr func init (cdr lst))))) | |
(define (foldl func init lst) | |
(if (null? lst) | |
init | |
(foldl func (func (car lst) init) (cdr lst)))) |
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
.container | |
width: 100% | |
max-width: 74rem | |
margin: 0 auto | |
padding: 1rem | |
.group | |
+clearfix | |
display: flex | |
width: 100% | |
%floating |
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
.container | |
width: 100% | |
max-width: 72rem | |
margin: 0 auto | |
padding: 0 0 1rem 0 | |
.group | |
+clearfix | |
width: 100% | |
margin: 0 .5rem | |
&.medium |
This file has been truncated, but you can view the full file.
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
int add(char a, char b) { | |
if (a == 0 && b == 1) return 1; | |
if (a == 0 && b == 2) return 2; | |
if (a == 0 && b == 3) return 3; | |
if (a == 0 && b == 4) return 4; | |
if (a == 0 && b == 5) return 5; | |
if (a == 0 && b == 6) return 6; | |
if (a == 0 && b == 7) return 7; | |
if (a == 0 && b == 8) return 8; | |
if (a == 0 && b == 9) return 9; |
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
console-setup | |
fontconfig | |
fontconfig-config | |
fonts-dejavu | |
fonts-dejavu-core | |
fonts-dejavu-extra | |
fonts-droid | |
fonts-freefont-ttf | |
fonts-horai-umefont | |
fonts-kacst |
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
Bundler 1.7.3 | |
Ruby 2.1.2 (2014-05-08 patchlevel 95) [x86_64-linux] | |
Rubygems 2.4.2 | |
GEM_HOME | |
Bundler settings | |
path | |
Set for your local app (/home/hauleth/Workspace/orodruin/.bundle/config): "vendor/bundle" | |
Set for the current user (/home/hauleth/.bundle/config): "vendor/bundle" | |
jobs |
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
(ns perun.core | |
(:require-macros [cljs.core.async.macros :refer [go]]) | |
(:require [om.core :as om :include-macros true] | |
[cljs.core.async :refer [<!]] | |
[om-tools.core :refer-macros [defcomponent]] | |
[om-tools.dom :as dom :include-macros true] | |
[perun.elasticsearch :as es])) | |
(enable-console-print!) |
OlderNewer