Skip to content

Instantly share code, notes, and snippets.

View pxlpnk's full-sized avatar
💭
👋 hey

Andreas Tiefenthaler pxlpnk

💭
👋 hey
View GitHub Profile
var Alpine = require('alpine');
var alpine = new Alpine("%h %s %B");
var data = alpine.parseLine("www.brain-salad.com 403 4321");
I think you mean team...
I think you mean squad..
I think you mean gang...
I think you mean pals...
I think you mean buds...
I think you mean posse...
I think you mean phalanx...
I think you mean crew...
I think you mean crüe...
I think you mean nerds...
@pxlpnk
pxlpnk / ssh-switch
Created February 18, 2015 20:43
ssh-switch
#!/bin/bash
echo $1
ssh-add -D
ssh-add ~/.ssh/$1
./ruby
FATAL ERROR: unable to find Rubinius runtime directories.
Rubinius was configured to find the directories relative to:
/rubinius-2.5.2
Set the environment variable RBX_PREFIX_PATH to the directory
that is the prefix of the following runtime directories:
@pxlpnk
pxlpnk / configure
Created February 3, 2015 12:50
Rubinius 2.5.2 install problem
#!/usr/bin/env ruby
require 'rubygems'
require 'bundler/setup'
require './rakelib/configure'
require './rakelib/release'
require './rakelib/build_signature'
require 'rbconfig'
require 'tempfile'
require 'fileutils'
gem 'contentful'
client = Contentful::Client.new(
access_token: 'b4c0n73n7fu1',
space: 'cfexampleapi'
)
entries = client.entries('sys.id[ne]' => 'nyancat')
entry = entries.first
Failure/Error: double('fuckyeah')
NoMethodError:
undefined method `double' for #<RSpec::Core::ExampleGroup::Nested_22::Nested_4:0x007fbf8268bfc0>
proc{|l|s=l.size;[l[0..(s/2.0)-1],l[(s/2.0).ceil..s]]}['012003'.split('').map(&:to_i)].map{|l|l.reduce(:+)}.inject{|a,b|a==b}#lucky_number
Hey the next meetup will take place tomorrow Wed 30.04.2014 beginning at 19:00.
It will be at the contentful.com[1] office:
Ritterstr. 12-14
10969 Berlin
Germany
Take the shiny outside elevator up to the 5.th floor and enter the
office trough the door on your left.
(require 'grizzl)
(projectile-global-mode)
(setq projectile-enable-caching t)
(setq projectile-completion-system 'grizzl)
;; Press Command-p for fuzzy find in project
(global-set-key (kbd "M-p") 'projectile-find-file)
;; Press Command-b for fuzzy switch buffer
(global-set-key (kbd "M-b") 'projectile-switch-to-buffer)