sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get install sublime-text
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Leaflet Path Seeker" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
<script src="https://rawgit.com/lodash/lodash/3.0.1/lodash.min.js"></script> | |
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> |
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 due because some Android libraries ship with android-support-v4.jar and they will likely be different. | |
Facebook SDK for android ships with android-support-v4.jar and some Cordova libraries also do. | |
To solve this problem, remove the files for the directory concerned and simply symlink to the android-support-v4.jar | |
contained in your android sdk directory. | |
For example I had | |
``` | |
[dependency] Found 2 versions of android-support-v4.jar in the dependency list, |
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
#! /bin/bash | |
# Usage: | |
# ./sigrestart 11 gulp watch | |
# Here if by any chance the command `gulp watch` is killed | |
# via the signal 11 (SIGSEGV), it will be restarted | |
# Since gulp has the bad habit of dying with SIGSEGV, it is | |
# very useful |
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
#!/usr/bin/env node | |
// npm install bluebird request xml-parser lodash | |
// usage: node buildingAt.js 43.699100505623726 7.264087200164794 | |
var Promise = require('bluebird'); | |
var request = Promise.promisify(require('request')); | |
var parse = require('xml-parser'); | |
var _ = require('lodash'); |
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
var data = $('#sample_picture').guillotine('getData'); | |
var pic = $('#sample_picture').get(0); | |
var canvas = $('canvas').get(0); | |
if (!canvas) { | |
$('body').append('<canvas/>') | |
canvas = $('canvas').get(0); | |
} | |
var src = pic.src; | |
var newPic = new Image(); |
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
# -*- coding: utf-8 -*- | |
class MagicType(type): | |
def __new__(cls, name, bases, attrs): | |
if name.startswith('None'): | |
return None | |
newattrs = dict(attrs) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/* | |
* Swiper - Mobile Touch Slider CSS | |
* http://www.idangero.us/sliders/swiper | |
* | |
* Vladimir Kharlampidi, The iDangero.us | |
* http://www.idangero.us/ | |
* | |
* Copyright 2012-2013, Vladimir Kharlampidi | |
* The iDangero.us | |
* http://www.idangero.us |
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
""" | |
A really stupid python template language inspired by coffeekup, markaby. | |
Do not use this code, it will ruin your day. A byproduct of insomnia. | |
TL;DR | |
----- | |
This module defines a template language that allows us to do: | |
d = Doc() |