Skip to content

Instantly share code, notes, and snippets.

View jdgarrido's full-sized avatar

ジョセフ·ダミアン·ガリード jdgarrido

View GitHub Profile
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
Subsystem: Dell Device 02be
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
Latency: 0
Capabilities: <access denied>
Kernel driver in use: agpgart-intel
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07) (prog-if 00 [VGA controller])
Subsystem: Dell Device 02be
Running migrations:
Rendering model states... DONE
Applying popular_proposal.0001_squashed_0014_popularproposal_organization...Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/jgarrido/.virtualenvs/vi-portal-electoral/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
utility.execute()
File "/home/jgarrido/.virtualenvs/vi-portal-electoral/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/jgarrido/.virtualenvs/vi-portal-electoral/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv
<% @datos_sedes.each do |r| %>
<%= r['region'] %> #aca solo imprime el nombre de la region
<% r['sedes'].each do |s| %> #por cada region, imprime los datos de una sede
<%= s['comuna'] %>, <%= s['direccion'] %>, <%= s['contacto'] %>
<% end %>
<% end %>
@jdgarrido
jdgarrido / data.txt
Created August 24, 2016 13:39
reciveci.ec
Registrant:
Email Address:
Phone Number: +00.56984457932
Local Name: Eduardo Villanueva
Local Organisation: Fundación Ciudadano Inteligente
Local Address:
Av. Holanda 895
Santiago, Providencia 000000
CL
@jdgarrido
jdgarrido / bulk.csv
Created August 18, 2016 14:04
dummy data
ano_datos mes_datos region ano_nacimiento hombres mujeres otros
1945 3 1 1935 44 60 5
1945 3 3 1935 79 32 4
1945 3 5 1935 93 45 4
1945 3 6 1935 86 71 6
1945 3 8 1935 84 19 3
1945 3 9 1935 56 18 1
1945 3 12 1935 14 70 1
1945 3 13 1935 34 52 4
1945 6 1 1935 14 33 0
@jdgarrido
jdgarrido / comuna.rb
Last active July 20, 2016 14:24
modelo papu
class Comuna < ActiveRecord::Base
belongs_to :provincia
has_many :sede
def to_s
self.nombre
end
end
@jdgarrido
jdgarrido / Preferences.sublime-settings
Last active June 17, 2016 02:38
Sublime text Editor user preferences
{
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"detect_indentation": false,
"draw_white_space": "all",
"font_face": "Liberation Mono",
"font_options": "subpixel_antialias",
"font_size": 12.0,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages": ["Vintage"],
@jdgarrido
jdgarrido / index.html
Last active April 27, 2016 14:15
SCSS
<body>
<div id="head">
<h1>titulo h1</h1>
</div>
<div id="body">
<div>
<h2>titulo h2</h2>
</div>
<div>
<h2>titulo h2</h2>
2016-01-08T15:00:57.769124+00:00 heroku[slug-compiler]: Slug compilation started
2016-01-08T15:00:57.769134+00:00 heroku[slug-compiler]: Slug compilation finished
2016-01-08T15:01:00.789436+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 52695 -e production`
2016-01-08T15:01:04.064346+00:00 app[web.1]: => Booting Unicorn
2016-01-08T15:01:04.064365+00:00 app[web.1]: => Rails 4.2.1 application starting in production on http://0.0.0.0:52695
2016-01-08T15:01:04.064367+00:00 app[web.1]: => Ctrl-C to shutdown server
2016-01-08T15:01:04.099478+00:00 app[web.1]: DEPRECATION WARNING: The configuration option `config.serve_static_assets` has been renamed to `config.serve_static_files` to clarify its role (it merely enables serving everything in the `public` folder and is unrelated to the asset pipeline). The `serve_static_assets` alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from block in tsort_each at /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort
<table>
<tr>
<td>columna 1</td>
<td>columna 2</td>
<td>columna 3</td>
</tr>
<!-- nueva fila -->
<tr>
<td>fila 1 / columna 1</td>
<td>fila 2 / columna 2</td>