Skip to content

Instantly share code, notes, and snippets.

View basicavisual's full-sized avatar
🦝
raccoon

Ali G basicavisual

🦝
raccoon
View GitHub Profile
@basicavisual
basicavisual / README.md
Created December 5, 2015 06:41 — forked from diegovalle/README.md
Topojson of Mexican municipalities and states

How to create the topojson map:

curl -o estados.zip http://mapserver.inegi.org.mx/MGN/mge2010v5_0.zip
curl -o  municipios.zip http://mapserver.inegi.org.mx/MGN/mgm2010v5_0.zip
unzip estados.zip 
unzip municipios.zip
ogr2ogr states.shp Entidades_2010_5.shp -t_srs "+proj=longlat +ellps=WGS84 +no_defs +towgs84=0,0,0"
ogr2ogr municipalities.shp Municipios_2010_5.shp -t_srs "+proj=longlat +ellps=WGS84 +no_defs +towgs84=0,0,0"
topojson -o mx_tj.json -s 1e-7 -q 1e5 states.shp municipalities.shp -p state_code=+CVE_ENT,state_name=NOM_ENT,mun_code=+CVE_MUN,mun_name=NOM_MUN
@basicavisual
basicavisual / Accidents.csv
Created December 5, 2015 17:42 — forked from KoGor/Accidents.csv
Russia choropleth example
Rtype RegionCode RegionName CarAccidents Deaths
federation Russian Federation Российская Федерация 203597 27991
fregion RU-BEL Белгородская область 1369 285
fregion RU-BRY Брянская область 1449 238
fregion RU-VLA Владимирская область 3157 450
fregion RU-VOR Воронежская область 3920 615
fregion RU-IVA Ивановская область 2018 187
fregion RU-KLU Калужская область 2140 368
fregion RU-KOS Костромская область 873 80
fregion RU-KRS Курская область 2060 307
@basicavisual
basicavisual / reset.sass
Created November 20, 2017 01:48 — forked from trey/reset.sass
Eric Meyer's reset.css in Sass. Originally by @postpostmodern.
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain) */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
require 'rails_helper'
RSpec.describe TodosController, :type => :controller do
describe "GET #index" do
#describe "POST #create" do
#describe "GET #show" do
#describe "PATCH #update" do (or PUT #update)
#describe "DELETE #destroy" do
#describe "GET #new" do
@basicavisual
basicavisual / application.html.erb
Created March 16, 2018 00:14 — forked from suryart/application.html.erb
Rails 4 flash messages using Twitter Bootstrap(bootstrap-sass: https://github.com/thomas-mcdonald/bootstrap-sass). An improved version of https://gist.github.com/roberto/3344628
// layout file
<body>
<div class="container">
<%= flash_messages %>
<%= yield %>
</div><!-- /container -->
</body>