Skip to content

Instantly share code, notes, and snippets.

View MaximeFrancoeur's full-sized avatar
🎯
Focusing

0xMaxPower MaximeFrancoeur

🎯
Focusing
  • Canada
View GitHub Profile
var AWS = require("aws-sdk");
var DOC = require("dynamodb-doc");
var path = require('path');
var util = require('util');
var _ = require('lodash');
var async = require('async');
var internals = {};
@MaximeFrancoeur
MaximeFrancoeur / country_dump_postgresql.sql
Last active June 17, 2019 21:33
Country dump PostgreSQL
INSERT INTO country (id, iso, name_const, name, iso3, numcode, phonecode) VALUES
(1, 'AF', 'AFGHANISTAN', 'Afghanistan', 'AFG', 4, 93),
(2, 'AL', 'ALBANIA', 'Albania', 'ALB', 8, 355),
(3, 'DZ', 'ALGERIA', 'Algeria', 'DZA', 12, 213),
(4, 'AS', 'AMERICAN SAMOA', 'American Samoa', 'ASM', 16, 1684),
(5, 'AD', 'ANDORRA', 'Andorra', 'AND', 20, 376),
(6, 'AO', 'ANGOLA', 'Angola', 'AGO', 24, 244),
(7, 'AI', 'ANGUILLA', 'Anguilla', 'AIA', 660, 1264),
(8, 'AQ', 'ANTARCTICA', 'Antarctica', NULL, NULL, 0),
@MaximeFrancoeur
MaximeFrancoeur / routerStateEq.js
Created December 17, 2014 04:05
Angular Directive that analyses the current ui-router $state and allows us to apply a css class depending on true/false
'use strict';
/**
* router-state-eq Directive
*
* What does this directive do?
* Analyses the current $state and allows us to apply a css class depending on true/false
*
* How to use it?
* Apply the router-state-eq="" attribute to the DOM element you want to style