This file has been truncated, but you can view the full file.
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
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
""" | |
This is from mixpanel customer service, I just PEP8ified it. Update api key, secret and token. | |
You can define which users you want to delete on line 125. Right now it will delete users who haven't | |
been seen in over 7 weeks. You will recieve a confirmation prompt before the people are deleted. | |
""" | |
import hashlib | |
import time | |
import urllib | |
import base64 |
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
{ | |
"ignored_packages":["Vintage"], | |
"theme": "Spacegray.sublime-theme", | |
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme", | |
"tab_size": 4, | |
"translate_tabs_to_spaces": true, | |
"word_wrap": false, | |
"draw_white_space": "all", | |
"trim_trailing_white_space_on_save": true, | |
"ensure_newline_at_eof_on_save": true, |
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
// As good as pseudo code at the moment. | |
function dragIntent(event, callback) { | |
// Accepts a mousedown event and interprets whether or not the | |
// user's intention is to drag the target element. | |
// @event: A mousedown event. | |
// @callback: The function to be fired if the event is interpreted as a drag. | |
var x1 = event.pageX; | |
var y1 = event.pageY; |
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
// Save these as two separate files. | |
// Write your tests in the js file. | |
// Run your tests from the html file. | |
// Add your test module to /static/lib/js/tests/run_all_js_tests.html | |
// lib/tests/unit_tests.js | |
define([ |
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
///////////////////// | |
// Merge Conflicts // | |
///////////////////// | |
(?s)<<<<<<< HEAD(.*?)=======(.*?)>>>>>>> [a-z_0-9\-]+ | |
/////////////////// | |
// HTML Analysis // | |
/////////////////// |
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([ | |
'jquery', | |
'underscore', | |
'backbone' | |
], function ($, _, Backbone) { | |
/* | |
* Documentation goes here |