Skip to content

Instantly share code, notes, and snippets.

View andrewsantarin's full-sized avatar

Cezar Andrew Villegas Santarin andrewsantarin

View GitHub Profile
/**
* From JohnRivs.
*
* Modified Seti_UI theme.
* {@link | https://laracasts.com/discuss/channels/general-discussion/a-smple-guide-to-installing-a-sublime-text-3-with-sidebar-icons/replies/66790}
* {@link | http://pastebin.com/QZb0chBK}
*
* Also use Facebook color scheme.
* https://github.com/christopherburton/Jeffrey-Way-Theme
*/
@andrewsantarin
andrewsantarin / libphonenumber-js.min.js
Last active October 3, 2017 03:57
Bundled version of catamphetamine/libphonenumber-js@0.4.32
!function(d,$){"object"==typeof exports&&"object"==typeof module?module.exports=$():"function"==typeof define&&define.amd?define("libphonenumber",[],$):"object"==typeof exports?exports.libphonenumber=$():d.libphonenumber=$()}(this,function(){return function(d){function $(n){if(t[n])return t[n].exports;var e=t[n]={i:n,l:!1,exports:{}};return d[n].call(e.exports,e,e.exports,$),e.l=!0,e.exports}var t={};return $.m=d,$.c=t,$.i=function(d){return d},$.d=function(d,t,n){$.o(d,t)||Object.defineProperty(d,t,{configurable:!1,enumerable:!0,get:n})},$.n=function(d){var t=d&&d.__esModule?function(){return d.default}:function(){return d};return $.d(t,"a",t),t},$.o=function(d,$){return Object.prototype.hasOwnProperty.call(d,$)},$.p="",$($.s=38)}([function(d,$,t){"use strict";function n(d){return d[0]}function e(d){return d[1]}function r(d){return d[2]||[]}function l(d){return d[3]}function u(d){return d[4]}function o(d){var $=d[5];return $||($=l(d)),$}function i(d){return d[6]}function a(d){return d[7]}function _(d){return
{"country_phone_code_to_countries":{"1":["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],"7":["RU","KZ"],"20":["EG"],"27":["ZA"],"30":["GR"],"31":["NL"],"32":["BE"],"33":["FR"],"34":["ES"],"36":["HU"],"39":["IT","VA"],"40":["RO"],"41":["CH"],"43":["AT"],"44":["GB","GG","IM","JE"],"45":["DK"],"46":["SE"],"47":["NO","SJ"],"48":["PL"],"49":["DE"],"51":["PE"],"52":["MX"],"53":["CU"],"54":["AR"],"55":["BR"],"56":["CL"],"57":["CO"],"58":["VE"],"60":["MY"],"61":["AU","CC","CX"],"62":["ID"],"63":["PH"],"64":["NZ"],"65":["SG"],"66":["TH"],"81":["JP"],"82":["KR"],"84":["VN"],"86":["CN"],"90":["TR"],"91":["IN"],"92":["PK"],"93":["AF"],"94":["LK"],"95":["MM"],"98":["IR"],"211":["SS"],"212":["MA","EH"],"213":["DZ"],"216":["TN"],"218":["LY"],"220":["GM"],"221":["SN"],"222":["MR"],"223":["ML"],"224":["GN"],"225":["CI"],"226":["BF"],"227":["NE"],"228":["TG"],"229":["BJ"],"230":["MU"],"231":["LR"],"232":["SL"],"233":["GH"],"234":["NG"],"235":["TD"],
@andrewsantarin
andrewsantarin / libphonenumber-js.min.js
Created October 3, 2017 04:11
Bundled version of catamphetamine/libphonenumber-js@0.4.32 with metadata.full
!function(d,l){"object"==typeof exports&&"object"==typeof module?module.exports=l():"function"==typeof define&&define.amd?define("libphonenumber",[],l):"object"==typeof exports?exports.libphonenumber=l():d.libphonenumber=l()}(this,function(){return function(d){function l(u){if(n[u])return n[u].exports;var $=n[u]={i:u,l:!1,exports:{}};return d[u].call($.exports,$,$.exports,l),$.l=!0,$.exports}var n={};return l.m=d,l.c=n,l.i=function(d){return d},l.d=function(d,n,u){l.o(d,n)||Object.defineProperty(d,n,{configurable:!1,enumerable:!0,get:u})},l.n=function(d){var n=d&&d.__esModule?function(){return d.default}:function(){return d};return l.d(n,"a",n),n},l.o=function(d,l){return Object.prototype.hasOwnProperty.call(d,l)},l.p="",l(l.s=38)}([function(d,l,n){"use strict";function u(d){return d[0]}function $(d){return d[1]}function t(d){return d[2]||[]}function e(d){return d[3]}function r(d){return d[4]}function o(d){var l=d[5];return l||(l=e(d)),l}function i(d){return d[6]}function a(d){return d[7]}function _(d){return
@andrewsantarin
andrewsantarin / DOC.md
Last active February 11, 2018 10:39
Getting django-admin with multiple versions of Python installed in your Windows machine

For example:

If you have Python 2.7.13 installed in the PATH env var and you want to leave it alone, but you also want to install the latest Python 3.6.4 version, then you should use virtualenv for Windows.

You'll also need this command to specifically use the target Python version in the target virtualenv, in this case, 3.6.4:

$ mkvirtualenv -p <DRIVE:\path\to\the\latest\Python[version-number]>\python.exe <your-new-virtualenv>

Reference: https://teamtreehouse.com/community/virtualenv-for-different-python-versions#answer-3056562

@andrewsantarin
andrewsantarin / File Structure
Last active July 16, 2018 12:56
File Structure
app
app-landing
components
AppLanding.jsx
address-map
components
AddressMapForm.jsx
AddressMapFormGoogleAutocompleteField.jsx
address-edit
components
@andrewsantarin
andrewsantarin / routes.js
Last active July 15, 2018 15:51
App like navigation?
import isEqual from 'lodash/isEqual';
function extractPathSegments(pathname) {
return pathname
.split('/')
.filter(str => str)
.map(str => `/${str}`);
}
function lastLocationIsParent(lastLocationPathname, currentLocationPathname) {
@andrewsantarin
andrewsantarin / React-Stateless-Functional-Component.sublime-snippet
Created July 20, 2018 12:01
Snippet: React: Stateless Functional Component
<snippet>
<content><![CDATA[
import React from 'react';
import PropTypes from 'prop-types';
export const PROP_TYPES = {
};
export const DEFAULT_PROPS = {
@andrewsantarin
andrewsantarin / React-Stateless-Functional-Component-with-Fragment.sublime-snippet
Created July 20, 2018 12:02
Snippet: React: Stateless Functional Component With Fragment
<snippet>
<content><![CDATA[
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
export const PROP_TYPES = {
};
export const DEFAULT_PROPS = {
!function(d,l){"object"==typeof exports&&"object"==typeof module?module.exports=l():"function"==typeof define&&define.amd?define("libphonenumber",[],l):"object"==typeof exports?exports.libphonenumber=l():d.libphonenumber=l()}(this,function(){return function(d){function l(u){if(n[u])return n[u].exports;var $=n[u]={i:u,l:!1,exports:{}};return d[u].call($.exports,$,$.exports,l),$.l=!0,$.exports}var n={};return l.m=d,l.c=n,l.i=function(d){return d},l.d=function(d,n,u){l.o(d,n)||Object.defineProperty(d,n,{configurable:!1,enumerable:!0,get:u})},l.n=function(d){var n=d&&d.__esModule?function(){return d.default}:function(){return d};return l.d(n,"a",n),n},l.o=function(d,l){return Object.prototype.hasOwnProperty.call(d,l)},l.p="",l(l.s=38)}([function(d,l,n){"use strict";function u(d){return d[0]}function $(d){return d[1]}function t(d){return d[2]||[]}function e(d){return d[3]}function r(d){return d[4]}function o(d){var l=d[5];return l||(l=e(d)),l}function i(d){return d[6]}function a(d){return d[7]}function _(d){return