Skip to content

Instantly share code, notes, and snippets.

Nitish Phanse nitish24p

Block or report user

Report or block nitish24p

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nitish24p
nitish24p / Javascript immutable Operations es6Array.md
Last active Oct 16, 2017
es6 Array immutable Array Actions
View Javascript immutable Operations es6Array.md

I have an array by the name students and a student object

let students = []

let student = {
  name: '',
  rollNumber: '',
  age: '',
  rank: ''
}
View mixpanel-cheatsheet.js
// Mixpanel Cheatsheet
// This requires the mixpanel javascript library to be embedded on your site
// https://mixpanel.com/help/reference/javascript-full-api-reference
// 1. API Methods.
mixpanel.init('new token', { your: 'config' }, 'library_name'); // initialize a new instance of the Mixpanel tracking object
mixpanel.push(['register', { a: 'b' }]); // push() keeps the standard async-array-push behavior around after the lib is loaded. This is only useful for external integrations that do not wish to rely on our convenience methods (created in the snippet).
You can’t perform that action at this time.