Skip to content

Instantly share code, notes, and snippets.

View icyleaf's full-sized avatar
🍺
Diving into beer

icyleaf icyleaf

🍺
Diving into beer
View GitHub Profile
@jdp
jdp / magneton.php
Created July 9, 2009 11:38
Magneton, the superdense PHP framework
<?php $u=$_GET['u'];$l=$u();extract($l);include("view/{$u}.php");
<?php
/**
* Description
* Smush.it uses optimization techniques specific to image format to remove
* unnecessary bytes from image files. It is a "lossless" tool, which means it
* optimizes the images without changing their look or visual quality. After
* Smush.it runs on a web page it reports how many bytes would be saved by
* optimizing the page's images and provides a downloadable zip file with the
* minimized image files.
*
@nkpart
nkpart / article.md
Created September 16, 2010 10:32
Kit - package manager for Objective-C

Packages. Boy, I just don't know.

I'd like to introduce a tool I've written, that I hope will make it easier to share objective-C code across iPhone projects.

The tool is Kit. To install it, you'll need the latest haskell platform release for OS X. Kit installs through haskell's package manager:

$ brew install haskell-platform # If you've got brew, otherwise: http://hackage.haskell.org/platform/mac.html
$ cabal update

$ cabal install kit

@vayn
vayn / pngcrusher.sh
Created May 12, 2011 19:32
Compress PNG file with Pngcrush
#!/bin/bash
# Name of File: pngcrusher.sh
# Author: Vayn a.k.a. VT <vayn@vayn.de>
# Name: PNG Crusher
# Thanks To: Jyo <http://jyorr.com>
# License:
# Released under the MIT, BSD, and GPL Licenses.
# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law.
@seanaedmiston
seanaedmiston / devise.rb
Created August 21, 2011 10:53
Devise Omniauthable
...
# ==> Configuration for any authentication mechanism
# Configure which keys are used when authenticating a user. The default is
# just :email. You can configure it to use [:username, :subdomain], so for
# authenticating a user, both parameters are required. Remember that those
# parameters are used only when authenticating and not when retrieving from
# session. If you need permissions, you should implement that in a before filter.
# You can also supply a hash where the value is a boolean determining whether
# or not authentication should be aborted when the value is not present.
config.authentication_keys = [ :login ]
@MichaelMartinez
MichaelMartinez / install.md
Created August 13, 2012 04:28 — forked from svnlto/install.md
Setup OS X 10.7/8 w/ homebrew, oh-my-zsh, rvm, nodejs, nvm

Setup new Mac with OSX Lion from scratch for Virtualization

These commands are good as of 08/12/2012.

The command line tools are approximately 171mb and everything you need w/ Free Apple ID. Or you can download the entire Xcode app.

Really the nicest choice for a terminal on OSX right now, especially with Lion style full screen support.

@ArtSabintsev
ArtSabintsev / Create iOS Icons.jsx
Last active December 24, 2015 22:19 — forked from twonjosh/Create iOS Icons.jsx
Create iOS App icons for iOS 4, 5, 6, 7, & 8
// Photoshop Script to Create iPhone Icons from iTunesArtwork
//
// WARNING!!! In the rare case that there are name collisions, this script will
// overwrite (delete perminently) files in the same folder in which the selected
// iTunesArtwork file is located. Therefore, to be safe, before running the
// script, it's best to make sure the selected iTuensArtwork file is the only
// file in its containing folder.
//
// Copyright (c) 2010 Matt Di Pasquale
// Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com
@orip
orip / build.gradle
Created October 7, 2013 17:52
Define an Android app's versionName and versionCode from git tags. http://orip.org/2013/10/versioning-android-apps-with-git-tags.html
android {
def gitTag = {
def tagMatchOptions
try {
tagMatchOptions = "--match ${tagToBuildFrom}"
} catch (MissingPropertyException) {
tagMatchOptions = ""
}
"git describe --exact HEAD ${tagMatchOptions}".execute().text.trim()
}()
@hannestyden
hannestyden / gist:3897757
Created October 16, 2012 07:24
OS X 10.8 Mountain Lion: Remove Notification Center and Spotlight from menu bar.
# [Notification Center](http://osxdaily.com/2012/08/06/disable-notification-center-remove-menu-bar-icon-os-x/)
## Disable
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist
killall NotificationCenter # optional?
## Enable
launchctl load -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist
# Spotlight
@abrookins
abrookins / gist:1933635
Created February 28, 2012 16:57
A Sublime Text 2 Django project file with a test runner build system
{
"folders":
[
{
"path": "django_project_dir"
},
{
"path": "lib/python2.7"
}
],