Skip to content

Instantly share code, notes, and snippets.

View shramee's full-sized avatar
🥳
Coding party

Shramee Srivastav shramee

🥳
Coding party
View GitHub Profile
@shramee
shramee / p5-particles.js
Last active March 1, 2017 06:33
Creates random particles with customizable properties
/**
* Created by shramee on 28/02/17.
*/
var particles = {},
particleProps = {},
particleFixOutOfViewport = function ( p, k ) {
var
flipSign = 1,
max = particleProps[ k + 'Max'];
if ( p[k] > max/2 ) { // if particle is in greater half
@shramee
shramee / Gruntfile.js
Last active March 21, 2016 07:02
Gruntfile for using SASS with Grunt and Autoprefixer for a WordPress theme with SASS init `sass/style.scss` directory
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
/* Autoprefixing all css files in theme root */
autoprefixer: {
options : {
browsers : ['last 2 versions'],
},
multiple_files : {