Skip to content

Instantly share code, notes, and snippets.

Working from home

Luis BlaShadow

Working from home
Block or report user

Report or block BlaShadow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
BlaShadow /
Created Sep 5, 2016 — forked from staltz/
The introduction to Reactive Programming you've been missing
View Chill the lion.markdown

Chill the lion

WebGL experiment using ThreeJS. Move the fan and press to make wind, the lion will surely appreciate.

A Pen by Karim Maaloul on CodePen.


BlaShadow /
Created Jun 13, 2014
Scroll list view into scrollview
ListView lv = (ListView)findViewById(; // your listview inside scrollview
lv.setOnTouchListener(new ListView.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
int action = event.getAction();
switch (action) {
case MotionEvent.ACTION_DOWN:
// Disallow ScrollView to intercept touch events.
View url_encode
// file "NSDictionary+UrlEncoding.m"
#import "NSDictionary+UrlEncoding.h"
// helper function: get the string form of any object
static NSString *toString(id object) {
return [NSString stringWithFormat: @"%@", object];
// helper function: get the url encoded string form of any object
static NSString *urlEncode(id object) {
View sample-test-2.js
describe('/blog', function() {
it('returns blog posts as JSON', function(done) {
.set('x-api-key', '123myapikey')
.auth('correct', 'credentials')
.expect('Content-Type', /json/)
.end(function(err, res) {
if (err) return done(err);
rpm -Uih
curl -L | bash -s stable
rvm install 2.0.0
rvm use 2.0.0@global --default
# for chinese user, if you have a wonderful speed ignore this part
# to have a faster download speed
# switch gem source to
View test.json
"country": {
"iso_code": "CO",
"names": {
"pt-BR": "Colômbia",
"es": "Colombia",
"ru": "Колумбия",
"en": "Colombia",
"zh-CN": "哥伦比亚",
"fr": "Colombie",
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from twisted.application import service
from twisted.web import server, static
from twisted.web.resource import Resource
from twisted.web.wsgi import WSGIResource
from twisted.internet import reactor
from flask.views import MethodView
BlaShadow / child.js
Created Mar 28, 2014
Child Process nodejs
View child.js
var context = [];
var value = context.pop()
console.log('iteraciones ' + value);
View test.xml
< receiver android:enabled="true" android:name=".broadcast_reciber_class" >
< intent-filter android:priority="1">
< action android:name="android.intent.action.ACTION_SET_WALLPAPER" />
< /intent-filter>
< /receiver>
You can’t perform that action at this time.