Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
ZIP,LAT,LNG | |
00601,18.180555, -66.749961 | |
00602,18.361945, -67.175597 | |
00603,18.455183, -67.119887 | |
00606,18.158345, -66.932911 | |
00610,18.295366, -67.125135 | |
00612,18.402253, -66.711397 | |
00616,18.420412, -66.671979 | |
00617,18.445147, -66.559696 |
import { action } from 'common/utils/redux/redux'; | |
@action | |
export class Actions { | |
static types = { | |
set3d: Symbol('set3d') | |
}; | |
static set3d(val) { |
{ | |
"presets": [ "es2015" ] | |
} |
/** | |
* On server, just register all of the resources directly to the plugin. On the client, pass in a loader file that maps bundle | |
* name to webpack bundle require (a separate entry point). Then from your action, you can call `context.loadBundle` to load | |
* the bundle resources. On the server, the resources are already available but on the client they will be lazy loaded by | |
* webpack. | |
*/ | |
'use strict'; | |
var debug = require('debug')('BundlePlugin'); | |
var PromiseLib = global.Promise || require('es6-promise').Promise; |
<script type="text/javascript"> | |
(function () { | |
"use strict"; | |
// once cached, the css file is stored on the client forever unless | |
// the URL below is changed. Any change will invalidate the cache | |
var css_href = './index_files/web-fonts.css'; | |
// a simple event handler wrapper | |
function on(el, ev, callback) { | |
if (el.addEventListener) { | |
el.addEventListener(ev, callback, false); |
import mimetypes | |
import os | |
import re | |
from flask import request, send_file, Response | |
@app.after_request | |
def after_request(response): | |
response.headers.add('Accept-Ranges', 'bytes') | |
return response |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
Most useful shortcuts | |
1. Shift + Command + P -> a fast access to all possible editor options and also installed packages optinos | |
2. Shift + P -> Find a file: Command + P (it is possible to use @ with the function name) | |
3. the usual: Command + F to search in a file and Command + Shift + F to search in files | |
Layout options in View | |
- Show/Hide Sidebar | |
- Show/Hide Open Files | |
- Minimap (from View -> Hide or Show | |
- Split Screen |
// Fandango Redesign Ad Scaling - jQuery ($) Required | |
mps._ready(function() { | |
mps.__scaleAds = function(adslot) { | |
var ADSLOT=adslot; var $aiframe = $('#'+mps.adslots[ADSLOT]+' iframe'); var $adivgpt = $('#'+mps.adslots[ADSLOT]); | |
if(typeof($)=='function' && typeof($aiframe)=='object' && typeof(vpSize)=='object' && vpSize.getW() < $aiframe.width()) { | |
window.console && console.debug('[IFRAME RESIZE: Triggered] Current Width: '+vpSize.getW()+' | Iframe Width: '+$aiframe.width()); | |
var scalesize = vpSize.getW(); | |
var scaleratio = (vpSize.getW() / $aiframe.width()); | |
var scaledheight = Math.floor($aiframe.height() * scaleratio); | |
var scaledwidth = Math.floor($aiframe.width() * scaleratio); |
require('./config'); | |
var jsFilesToignore = ["node_modules/**/*", "**/bower_components/**/*", "dist/app/**/*", "app/assets/**/vendor/**/*"]; | |
module.exports = function (grunt) { | |
// load all grunt tasks | |
require('load-grunt-tasks')(grunt); | |
// Configuration |