Skip to content

Instantly share code, notes, and snippets.

View yelirekim's full-sized avatar
🎋

Mike Riley yelirekim

🎋
View GitHub Profile
@yelirekim
yelirekim / magic-hash.sh
Last active March 3, 2020 17:02
Git magic first commit hash
#/usr/bin/env bash
printf '' | git hash-object -t tree --stdin # 4b825dc642cb6eb9a060e54bf8d69288fbee4904
@yelirekim
yelirekim / what-the-commit.md
Last active April 10, 2019 05:20
What the commit?

#What is a commit?

In the simplest literal terms possible, a commit represents a change to lines of code in a revision control system, along with a description. The mechanics of most VCSes don't prescribe anything beyond that simple model. It's a concept that has been in use (and misuse) for a little over 40 years, and a central concept in every major version control system ever released. Given that, and the fact that you're reading this document, and the fact that this document is in a revision control system, you're probably already familiar with this concept.

You are probably also familiar with people making "bad commits", but what you might not be familiar with is a team that makes only "good commits", and more particularly the organizational implications of doing so. This document aims to explore those implications.

In order to get a good conceptual framework for ho

@yelirekim
yelirekim / game_map.js
Created October 11, 2011 22:32
game map settings object
define([
'/dev/js/main.js',
'/dev/js/types.js',
'async!http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places',
rmod('maps'),
rmod('common'),
rmod('dynamic')],function(main, types, google_maps, maps, common, dynamic){
return function(config, game_config, gmap_config) {
this.default_settings = {
element_id: null
@yelirekim
yelirekim / dynamic.js
Created October 11, 2011 22:30
dynamically generated animated setter
define([
'/dev/js/main.js',
'/dev/js/types.js',
rmod('common')],
function(main, types, common) {
return {
animated_setter: function(obj, property, getter, setter) {
return function(to, animated, easing, callback) {
if(common.is_false(animated)) {
return setter(to);
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
//
// JSONRPC.m
// Sponduu
//
// Created by DO on 5/18/10.
// Copyright 2010 Digital Operative Inc.. All rights reserved.
//
#import "JSONRPC.h"
#import "SponduuStatic.h"
@yelirekim
yelirekim / assassinsAppDelegate.m
Created November 16, 2010 00:30
Attempting to transition between views, replacing the entire view stack, using TTNavigator
@implementation assassinsAppDelegate
- (id)init {
self = [super init];
if(self) {
animationMarker = NO;
}
return self;
}
#!/bin/bash
function commit_message{
curl --silent http://whatthecommit.com | sed -n '/<p>/,/<\/p>/p' | sed -e '1s/.*<p>//' -e '$s/<\/p>.*//' | sed '/^$/d'
}
# svn commit -m `commit_message`