Skip to content

Instantly share code, notes, and snippets.

View garyconstable's full-sized avatar
🏠
Working from home

Gary Constable garyconstable

🏠
Working from home
View GitHub Profile

Canvas particles swarming experiment.

The idea of this experiment is to create a grid of particles and then add a marker that the particles swarm to. When the marker disapears, the particles should return to their normal position.

A Pen by Gary Constable on CodePen.

License.

@garyconstable
garyconstable / DABfL.markdown
Created May 23, 2014 23:02
A Pen by Gary Constable.

More Particle Experiments

2.5K Particles following the mouse - next step is to see if we can get webgl to do the drawing to allow a higher particle count.

A Pen by Gary Constable on CodePen.

License.

@garyconstable
garyconstable / rwd.css
Last active October 21, 2015 11:10 — forked from trey/rwd.css
/*========== Mobile First Method ==========*/
@media only screen and (min-width : 320px) {}
@media only screen and (min-width : 480px) {}
@media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : portrait) {}
@media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : landscape){}
@media only screen and (min-device-width : 375px) and (max-device-width : 667px) and (orientation : portrait) {}
@media only screen and (min-device-width : 375px) and (max-device-width : 667px) and (orientation : landscape){}
@media only screen and (min-width : 768px) {}
@media only screen and (min-width : 992px) {}
/**
* functions for altering url params
* @returns {searchParams}
*/
var searchParams = function(){};
searchParams.prototype.find = function( str, search ){
if(str.indexOf(search) > 0){
@garyconstable
garyconstable / gist:62bc0cba80a1ffbd85c5
Created January 3, 2015 22:27
Twig and craft snippets
//twig ellipsis
{{ myentity.text|length > 50 ? myentity.text|slice(0, 50) ~ '...' : myentity.text }}
@garyconstable
garyconstable / app.js
Last active February 24, 2016 12:32
Angular JS App Skeleton
'use strict';
/* ----------------------------------------------------------------
App Definition
-----------------------------------------------------------------*/
var webApp = angular.module('webApp', [
'ngRoute',
'webAppAnimations',
'webAppControllers',
@garyconstable
garyconstable / main.js
Last active August 29, 2015 14:14
Scroller Gallery
/* ---------------------------------------------------------------------
* scroller gallery plugin - v0001
* ------------------------------------------------------------------ */
(function ( $ ) {