Skip to content

Instantly share code, notes, and snippets.

View cesandoval's full-sized avatar

Carlos Sandoval Olascoaga cesandoval

View GitHub Profile
{
"statuses": [
{
"created_at": "Wed Apr 12 04:53:25 +0000 2017",
"id": 852021818290352100,
"id_str": "852021818290352129",
"text": "Watch NASA's first 4K broadcast from space on April 26th - Engadget https://t.co/EfwAYeJpjF",
"truncated": false,
"entities": {
"hashtags": [],
2017 Country Name
301000 United Arab Emirates
240000 Belgium
235000 Bahrain
99999 Austria
30000 Brazil
<!DOCTYPE html>
<html lang="en">
<head>
<title>I'm Learning D3</title>
<script src="http://d3js.org/d3.v4.min.js" charset="utf-8"></script>
<style>
text {
font-family: "Open Sans", sans-serif;
font-size: 12px;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
id Name Citizens_Connect_App City_Worker_App Constituent_Call Employee_Generated twitter Self_Service tot_count
23 South Boston Waterfront 622 21 287 23 4 21 978
11 Back Bay 4533 579 2255 405 13 240 8025
12 East Boston 4110 1196 4510 414 19 392 10641
9 Roxbury 4906 977 7948 513 25 487 14856
10 South End 7285 723 3086 411 30 438 11973
15 Beacon Hill 3112 848 1800 429 10 236 6435
16 Downtown 35336 7629 19697 2913 295 1176 67048
13 Charlestown 2440 306 2150 361 4 286 5547
14 West End 572 52 339 65 3 14 1045
code1 code2
DMO'28473426' PPP'5dea48b7'
DMO'af79982b' PPP'fbfcdc29'
DMO'edb2f828' PPP'2d03d975'
DMO'c3d26e0f' PPP'bd92288a'
DMO'10a973ce' PPP'9ac222e6'
DMO'dde66f17' PPP'da49ae3e'
DMO'f6ef9e14' PPP'fd3b329e'
DMO'c713dc13' PPP'ecffb25c'
DMO'50bfcf5d' PPP'5dd0960a'
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 63 columns, instead of 3 in line 5.
Country Name,Country Code,Indicator Name,Indicator Code,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018
Aruba,ABW,Net migration,SM.POP.NETM,,,-4323,,,,,-4275,,,,,-3537,,,,,-5470,,,,,-1921,,,,,-5194,,,,,14218,,,,,6926,,,,,6263,,,,,-441,,,,,1253,,,,,1004,
Afghanistan,AFG,Net migration,SM.POP.NETM,,,-20000,,,,,-20000,,,,,-20000,,,,,-1092462,,,,,-3318301,,,,,-1484185,,,,,2327473,,,,,-379474,,,,,929118,,,,,-777497,,,,,448007,,,,,-299999,
Angola,AGO,Net migration,SM.POP.NETM,,,-135000,,,,,-226155,,,,,-80955,,,,,11455,,,,,234148,,,,,-151982,,,,,142811,,,,,-126955,,,,,172594,,,,,85286,,,,,87322,,,,,0,
Albania,ALB,Net migration,SM.POP.NETM,,,-99,,,,,-99,,,,,-99,,,,,-99,,,,,-99,,,,,-99,,,,,-443212,,,,,-179606,,,,,-176774,,,,,-217358,,,,,-93425,,,,,-40000,
Andorra,AND,Net
This file has been truncated, but you can view the full file.
@cesandoval
cesandoval / add_texture.py
Created November 8, 2012 20:45
add texture to materials for rendering
import Rhino
import scriptcontext
from rhinoscript import utility as rhutil
import rhinoscriptsyntax as rs
import os
image_folder = "C:\LocalCode_LA\images"
rhino_folder = "C:\LocalCode_LA"
def AddMaterial(image_path):
@cesandoval
cesandoval / new_export.py
Created November 5, 2012 20:12
new_export
import System
import System.Collections.Generic as SCG
import Rhino
import scriptcontext
import rhinoscriptsyntax as rs
from Rhino.FileIO import FileWriteOptions, FileReadOptions
def addRhinoLayer(layerName, layerColor=System.Drawing.Color.Black):