Skip to content

Instantly share code, notes, and snippets.

View jAlpedrinha's full-sized avatar

Jorge Alpedrinha Ramos jAlpedrinha

View GitHub Profile
@jAlpedrinha
jAlpedrinha / main.py
Created August 4, 2016 15:13
Async loop example
import asyncio
container_list = ['a', 'b', 'c']
async def job(container_id):
while True:
print("I'll do stuff with this container", container_id)
await asyncio.sleep(1)

Keybase proof

I hereby claim:

  • I am jalpedrinha on github.
  • I am jalpedrinha (https://keybase.io/jalpedrinha) on keybase.
  • I have a public key ASAaXwgq2WRt8kdhNuDo8FihuLqFHLHRNDflSYF9AO5AyQo

To claim this, I am signing this object:

@jAlpedrinha
jAlpedrinha / test.py
Created February 5, 2016 15:06
test.py
from pyspark import SparkContext, SparkConf
conf = SparkConf().setAppName("teste").setMaster("mesos://54.93.63.49:7077")
sc = SparkContext(conf=conf)
print("Hello")
@jAlpedrinha
jAlpedrinha / v8.rb
Last active October 28, 2015 12:18
Formulae to install v8-4.1.0.27 with brew on El Capitan
# Track Chrome stable.
# https://github.com/v8/v8-git-mirror/commits/901b67916
# https://omahaproxy.appspot.com/
class V8 < Formula
homepage "https://code.google.com/p/v8/"
url "https://github.com/v8/v8-git-mirror/archive/4.1.0.27.tar.gz"
sha256 "04dde55ccd3e869e8aeeb511fdcaf6a339a67618884b0093550e80a04954862e"
<form action="" method="POST">{% csrf_token %}
{{ property_form.management_form }}
<table id="id_forms_table" border="0" cellpadding="0" cellspacing="5" class="table">
<thead>
<tr>
<th scope="col">Disciplinas <a href="javascript:void(0)" class="add-row"><i class="icon-plus"></i></a></th>
<th scope="col">&nbsp;</th>
</tr>
</thead>
<tbody class="table_body">