Skip to content

Instantly share code, notes, and snippets.

Work work

Wojtek Siudzinski suda

Work work
Block or report user

Report or block suda

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
matthiasplappert / gist:9493050
Last active Aug 29, 2015
QuickLook Debugging for `UIView`
View gist:9493050
@interface UIView (MPAdditions)
@implementation UIView (MPAdditions)
- (id)debugQuickLookObject {
if (self.bounds.size.width < 0.0f || self.bounds.size.height < 0.0f) {
return nil;
dmiddlecamp / holiday_strip.ino
Last active Aug 29, 2015
Holiday Strip code
View holiday_strip.ino
// This #include statement was automatically added by the Spark IDE.
#include "neopixel/neopixel.h"
#define PIXEL_PIN D2
#define PIXEL_COUNT 300
#define PIXEL_TYPE WS2812B
int reds[PIXEL_COUNT];
int greens[PIXEL_COUNT];
View DNCloseButton.h
// DNCloseButton.h
// ParkingMobility
// Created by Michael Nachbaur on 10-08-22.
// Copyright 2010 Decaf Ninja Software. All rights reserved.
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
nebiros / postgresql.rb
Created Dec 3, 2012
postgres 9.1.6 homebrew formula
View postgresql.rb
require 'formula'
class Postgresql < Formula
homepage ''
url ''
sha1 'a24b7c002463572ee7371f055e566b69e39cda3e'
depends_on 'readline'
depends_on 'libxml2' if MacOS.leopard? # Leopard libxml is too old
depends_on 'ossp-uuid' unless build.include? 'without-ossp-uuid'
mstepniowski / results.txt
Last active Dec 10, 2015
Script showing top 25 talk proposals for DjangoCon Europe 2013
View results.txt
# 25 best talk proposals as of Saturday, 19th of January at 11:59 PM UTC
# ----------------------------------------------------------------------
# Calculated by from 15383 votes of 790 people.
1. (411) Asynchronous code in Django.
2. (398) How to combine JavaScript & Django in a smart way
3. (375) Website security in Django
4. (364) Advanced PostgreSQL in Django
5. (359) Designing a good API: Lessons Learned
6. (344) Let’s bankrupt Heroku: make your Django run fast
emachnic / fstab
Created Aug 26, 2013
Automatically mount Apple Extreme hard drive in Raspberry PI running XBian using fstab.
View fstab
//\040Passport\040for\040Mac /media/Passport cifs rw,username=xbian,pass=********,sec=ntlm 0 0
dre1080 /
Created Nov 9, 2013
Js2Coffee a directory recursively. Excludes node_modules, app/assets and public directories.
for FILE in `find . -name "*.js" -type f -o -path './node_modules' -prune -o -path './app/assets' -prune -o -path './public' -prune`
if [ -e $FILE ] ; then
echo "converting ${FILE} to ${COFFEE}"
js2coffee "$FILE" > "$COFFEE"
echo "File: {$1} does not exist!"
allanlei / .env
Created Jan 16, 2012
Sample local Heroku/Django development environment using foreman
View .env
3dd13 / generate_ssh_keys.rb
Created Jan 20, 2011
chef recipe to generate ssh key for a user
View generate_ssh_keys.rb
define :generate_ssh_keys, :user_account => nil do
username = params[:user_account]
raise ":user_account should be provided." if username.nil?
Chef::Log.debug("generate ssh skys for #{username}.")
execute "generate ssh skys for #{username}." do
user username
creates "/home/#{username}/.ssh/"
View rename-node.rb
#!/usr/bin/env knife exec
# A knife exec script to change chef node's name, preserving all the attributes.
# Usage: knife exec rename-node.rb old-name new-name
# Script retrieves the Node object, changes its 'name' attribute,
# creates new Node object with updated name and rest of attributes
# untouched. Then it deletes old Node and Client objects from
# database, and logs into the server to update it:
You can’t perform that action at this time.