Skip to content

Instantly share code, notes, and snippets.

@halbtuerke
halbtuerke / sort1mb.cpp
Created October 27, 2012 07:59 — forked from preshing/sort1mb.cpp
Sort one million 8-digit numbers in 1MB RAM
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
typedef unsigned int u32;
typedef unsigned long long u64;
//-------------------------------------------------------------------------
// WorkArea
//-------------------------------------------------------------------------
@halbtuerke
halbtuerke / O'Reilly-Fringes-Of-Git-Webinar.markdown
Created October 27, 2012 06:49 — forked from matthewmccullough/O'Reilly-Fringes-Of-Git-Webinar.markdown
Matthew McCullough & Tim Berglund's O'Reilly "Fringes Of Git" Webinar Source

O'Reilly Git Webinar

The Fringes of Git

Overview

Matthew McCullough and Tim Berglund, authors of the O'Reilly Git Master Class videos will introduce you to the very edges of Git's capabilities. There are plenty of "Getting Started with Git" sessions on the web, but we'd like to take 40 minutes of your time in an entirely different direction. These 40 minutes will primarily be live coding with a few diagrams for reference. We'll show you how Git reaches farther than any other version control system to provide capabilities for both the novice and the master craftsperson.

Webinar Outline

Rebasing

@halbtuerke
halbtuerke / gist:3885928
Created October 13, 2012 19:53
Set guifont size in Vim
function! FontSize(size)
let &guifont = split(&guifont, ":")[0] . ":h" . a:size
endfunction
@halbtuerke
halbtuerke / caret-hint.js
Created September 24, 2012 04:35 — forked from stepnem/caret-hint.js
Pentadactyl plugin for moving caret position and/or selecting text by hinting
/* NEW BSD LICENSE {{{
Copyright (c) 2009-2011, anekos.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
// ==UserScript==
// @name Straight Google
// @id straight_google_pokerface
// @namespace in.co.tossing.toolkit.google
// @description Remove URL redirection from google products
// @license GPL v3 or later version
// @updateURL http://userscripts.org/scripts/source/121261.meta.js
// @include *://www.google.*/*q=*
// @include *://www.google.*/*tbs=*
// @include *://www.google.*/search?*
@halbtuerke
halbtuerke / about.md
Created November 26, 2011 23:57 — forked from basus/about.md
Programming Achievements: How to Level Up as a Developer

Programming Achievements: How to Level Up as a Developer

  1. Select a particular experience to pursue.
  2. Pursue that experience to completion. (Achievement unlocked!)
  3. Reflect on that experience. Really soak it in. Maybe a blog post would be in order?
  4. Return to Step 1, this time selecting a new experience.

This gist is a fork of this other gist which is itself a fork of a gist from this blog post.

@halbtuerke
halbtuerke / about.md
Created November 26, 2011 23:57 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
-- starts listed applications
set theAppList to {"GrowlHelperApp", "LaunchBar", "Default Folder X Helper", "MercuryMoverAgent", "HardwareGrowler", "HazelHelper", "BetterTouchTool", "NetworkLocation", "LazyMouseBG", "SteerMouse Manager", "TextExpander", "Optimal Layout", "Dropbox"} as list
set theDelay to 15
set appCount to count of theAppList
repeat with currentApp in theAppList
tell application "System Events"
set isGrowlRunning to ¬
(count of (every process whose name is "GrowlHelperApp")) > 0
on open theFile
set filePath to quoted form of (POSIX path of theFile)
do shell script "rm " & filePath
end open
tell application "Path Finder"
set selection_list to selection
repeat with one_item in selection_list
set a_path to POSIX path of one_item
do shell script "rm " & quoted form of a_path
end repeat
end tell