- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIView *view = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 100)] autorelease]; | |
CAGradientLayer *gradient = [CAGradientLayer layer]; | |
gradient.frame = view.bounds; | |
gradient.colors = [NSArray arrayWithObjects:(id)[[UIColor blackColor] CGColor], (id)[[UIColor whiteColor] CGColor], nil]; | |
[view.layer insertSublayer:gradient atIndex:0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |s| | |
s.name = "DCModalSegue" | |
s.version = "0.0.2" | |
s.summary = "A custom segue which makes a 'pushed back' modal presenting animation." | |
s.homepage = "https://github.com/zetachang/DCModalSegue" | |
s.license = 'MIT' | |
s.authors = {"David Chang" => "[email protected]"} | |
s.source = { :git => "https://github.com/zetachang/DCModalSegue.git", :tag => "0.0.2" } | |
s.platform = :ios, '5.0' | |
s.source_files = 'DCModalSegue/*.{h,m}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation NSObject (TSDictionaryRepresentation) | |
/** | |
Turns an object into NSDictionary, for API requests | |
*/ | |
- (NSDictionary *)dictionaryRepresentationWithMapping: (NSDictionary *)mapping { | |
NSMutableDictionary *mutableDict = [NSMutableDictionary new]; | |
[mapping enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |s| | |
s.name = 'MTStatusBarOverlay' | |
s.version = '0.9.1.1' | |
s.platform = :ios | |
s.summary = 'A custom iOS status bar overlay seen in Apps like Reeder, Evernote and Google Mobile App.' | |
s.homepage = 'https://github.com/shsteven/MTStatusBarOverlay' | |
s.author = { 'Matthias Tretter' => '[email protected]' } | |
s.source = { :git => 'https://github.com/myell0w/MTStatusBarOverlay.git', :branch => 'master', :tag => '0.9.1.1' } | |
s.description = 'This class provides a custom iOS (iPhone + iPad) status bar overlay window known from ' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |s| | |
s.name = 'MagicalRecord' | |
s.version = '2.2.1-develop' | |
s.license = 'MIT' | |
s.summary = 'Super Awesome Easy Fetching for Core Data 1!!!11!!!!1!.' | |
s.homepage = 'http://github.com/magicalpanda/MagicalRecord' | |
s.author = { 'Saul Mora' => '[email protected]' } | |
s.source = { :git => 'https://github.com/magicalpanda/MagicalRecord.git',:branch=>'develop' } | |
s.description = 'Handy fetching, threading and data import helpers to make Core Data a little easier to use.' | |
s.source_files = 'MagicalRecord/**/*.{h,m}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |s| | |
s.name = 'MCPanelViewController' | |
s.version = '0.1' # modify accordingly | |
s.platform = :ios | |
s.summary = 'Drop-in panel control for iOS with blurring background and screen-edge activation gestures.' | |
s.homepage = 'https://github.com/mehsome/MCPanelViewController' | |
s.author = { 'Matthew Cheok' => '[email protected]' } | |
s.source = { :git => 'https://github.com/mehsome/MCPanelViewController.git', :branch => 'master', :tag => '0.1' } | |
s.description = 'Drop-in panel control for iOS with blurring background and screen-edge activation gestures.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
- jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
- Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
- AngularJS - Conventions based MVC framework for HTML5 apps.
- Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
- lawnchair - Key/value store adapter for indexdb, localStorage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getTrilateration(position1, position2, position3) { | |
var xa = position1.x; | |
var ya = position1.y; | |
var xb = position2.x; | |
var yb = position2.y; | |
var xc = position3.x; | |
var yc = position3.y; | |
var ra = position1.distance; | |
var rb = position2.distance; | |
var rc = position3.distance; |
OlderNewer