Skip to content

Instantly share code, notes, and snippets.

⌨️
Click! Clack!

Łukasz Jan Niemier hauleth

Block or report user

Report or block hauleth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View test.pl
#!/usr/bin/perl
use strict;
use warnings;
while(<>) {
s/((\b\w+\b)(\s+\2\b)+)/[$1]/ig;
print "$_";
}
@hauleth
hauleth / railsproj.sh
Created Apr 20, 2014
Rails project generation script
View railsproj.sh
#!/bin/bash
dir="$1"
shift 1
mkdir "$dir"
cd "$dir"
bundler init
echo "gem 'rails'" >> Gemfile
@hauleth
hauleth / install.sh
Last active Aug 29, 2015
Developer machine installation script
View install.sh
#!/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
View kody.scm
(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))))
View _basic.sass
.container
width: 100%
max-width: 74rem
margin: 0 auto
padding: 1rem
.group
+clearfix
display: flex
width: 100%
%floating
View _basic.sass
.container
width: 100%
max-width: 72rem
margin: 0 auto
padding: 0 0 1rem 0
.group
+clearfix
width: 100%
margin: 0 .5rem
&.medium
View add.c
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;
View gist:93ecc5281c39648c3f41
console-setup
fontconfig
fontconfig-config
fonts-dejavu
fonts-dejavu-core
fonts-dejavu-extra
fonts-droid
fonts-freefont-ttf
fonts-horai-umefont
fonts-kacst
View bundle env
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
View core.cljs
(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!)
You can’t perform that action at this time.