Skip to content

Instantly share code, notes, and snippets.

View carlweis's full-sized avatar

Carl Weis carlweis

View GitHub Profile
@carlweis
carlweis / countries_migration.rb
Created January 11, 2016 10:29
Import countries into rails app
require 'csv'
class CreateCountries < ActiveRecord::Migration[5.0]
def change
create_table :countries do |t|
t.string :code, null: false
t.decimal :latitude, {:precision => 10, :scale=>6}
t.decimal :longitude, {:precision => 10, :scale=>6}
t.string :name, null: false
t.boolean :active, null: false, default: false
@carlweis
carlweis / usa-vector-map-svg
Created January 6, 2016 06:51
SVG Map of the United States
<svg height="668.4389989572471" version="1.1" width="1081" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="overflow: hidden; position: relative; top: -0.661621px;" viewBox="0 0 959 593" preserveAspectRatio="xMinYMin"><desc style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Created with Raphaël 2.1.2 and Mapael (http://neveldo.fr/mapael)</desc><defs style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></defs><path fill="#343434" stroke="#5d5d5d" d="M233.08751,519.30948L235.02744,515.75293L237.29070000000002,515.42961L237.61402,516.23791L235.51242000000002,519.30948L233.08751,519.30948ZM243.27217000000002,515.59127L249.41530000000003,518.1778400000001L251.51689000000002,517.8545200000001L253.13350000000003,513.9746500000001L252.48686000000004,510.5797700000001L248.28366000000003,510.0947900000001L244.24213000000003,511.8730600000001L243.27217000000005,515.5912700000001ZM273.9878,525.61427L277.706,531.1107400000001L280.13092,530.7874200000001L281.26255,530.3024400000002
@carlweis
carlweis / .phpstorm.meta.php
Created December 11, 2015 19:00 — forked from barryvdh/.phpstorm.meta.php
Laravel PhpStorm Meta file
<?php
namespace PHPSTORM_META {
/**
* PhpStorm Meta file, to provide autocomplete information for PhpStorm
* Generated on 2015-06-22.
*
* @author Barry vd. Heuvel <[email protected]>
* @see https://github.com/barryvdh/laravel-ide-helper
*/