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
// if (!window.L) { window.L = function () { console.log(arguments);} } // optional EZ quick logging for debugging | |
/** | |
* A modified (improved?) version of the jQuery plugin design pattern | |
* See http://docs.jquery.com/Plugins/Authoring (near the bottom) for details. | |
* | |
* ADVANTAGES OF EITHER FRAMEWORK: | |
* - Encapsulates additional plugin action methods without polluting the jQuery.fn namespace | |
* - Ensures ability to use '$' even in compat modes | |
* |
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
<?php | |
/* | |
Plugin Name: 15CC Modernizr Plus | |
Plugin URI: http://www.club15cc.com/WordPress-Modernizr-Plus | |
Description: Adds Modernizr and uses .load to rapidly download JS and CSS scripts in parallel. Plus adds support for HTML5 and MQ's to old browsers. | |
Version: 1.0 | |
Author: Hari Karam Singh | |
Author URI: http://www.club15cc.com | |
License: MIT | |
* |
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
<?php | |
/* | |
PHP CSS Browser Selector v0.0.1 | |
Bastian Allgeier (http://bastian-allgeier.de) | |
http://bastian-allgeier.de/css_browser_selector | |
License: http://creativecommons.org/licenses/by/2.5/ | |
Credits: This is a php port from Rafael Lima's original Javascript CSS Browser Selector: http://rafael.adm.br/css_browser_selector | |
*/ |
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
<?php | |
/* | |
PHP CSS Browser Selector v0.0.2 (Update by Hari Karam Singh) | |
Bastian Allgeier (http://bastian-allgeier.de) | |
http://bastian-allgeier.de/css_browser_selector | |
License: http://creativecommons.org/licenses/by/2.5/ | |
Credits: This is a php port from Rafael Lima's original Javascript CSS Browser Selector: http://rafael.adm.br/css_browser_selector | |
*/ |
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
#import <UIKit/UIKit.h> | |
@interface UIView (Marshmallows) | |
@property (nonatomic) CGFloat rotation; | |
/** @name Positioning convenience methods */ | |
- (void)moveByDeltaX:(CGFloat)delX deltaY:(CGFloat)delY; | |
- (void)moveOriginToX:(CGFloat)theX; | |
- (void)moveOriginToY:(CGFloat)theY; |
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
{ | |
"count":10, | |
"total_count":10, | |
"current_page":1, | |
"pages":1, | |
"products":[ | |
{ | |
"product":{ | |
"id":1060500593, |
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
/******* | |
*** vertex.glsl *********** | |
uniform mat4 u_projection_matrix; | |
attribute vec4 a_position; | |
//attribute vec4 a_source_color; | |
varying vec4 v_position; | |
void main(void) |
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
#define VTXSIZE 0.80 // Amplitude | |
#define WAVESIZE 100.0 // Frequency | |
#define FACTOR 1.2 | |
#define SPEED 2.0 | |
#define OCTAVES 3 | |
// Example of the same wave function used in the vertex engine | |
lowp float wave(lowp float x, | |
lowp float y, | |
lowp float timer) |
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
// | |
// AC_CoverView.m | |
// AC Cover | |
// | |
// Created by Hari Karam Singh on 11/04/2014. | |
// Copyright (c) 2014 Air Craft. All rights reserved. | |
// | |
#import "AC_CoverView.h" | |
#import "GLKView+AC_Additions.h" |
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
// DNF: @implementation { NSMutableArray *_activeTouches } | |
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event | |
{ | |
for (UITouch *t in touches) { | |
NSUInteger idx = _activeTouches.count; | |
[_activeTouches addObject:t]; | |
[self _updateForTouch:t withIndex:idx]; | |
} | |
} |
OlderNewer