Skip to content

Instantly share code, notes, and snippets.

View hauleth's full-sized avatar
⌨️
Click! Clack!

Łukasz Jan Niemier hauleth

⌨️
Click! Clack!
View GitHub Profile
#!/usr/bin/perl
use strict;
use warnings;
while(<>) {
s/((\b\w+\b)(\s+\2\b)+)/[$1]/ig;
print "$_";
}
@hauleth
hauleth / railsproj.sh
Created April 20, 2014 14:36
Rails project generation script
#!/bin/bash
dir="$1"
shift 1
mkdir "$dir"
cd "$dir"
bundler init
echo "gem 'rails'" >> Gemfile
@hauleth
hauleth / install.sh
Last active August 29, 2015 14:00
Developer machine installation script
#!/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
(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))))
.container
width: 100%
max-width: 74rem
margin: 0 auto
padding: 1rem
.group
+clearfix
display: flex
width: 100%
%floating
.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.
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;
console-setup
fontconfig
fontconfig-config
fonts-dejavu
fonts-dejavu-core
fonts-dejavu-extra
fonts-droid
fonts-freefont-ttf
fonts-horai-umefont
fonts-kacst
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
(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!)