Skip to content

Instantly share code, notes, and snippets.

Working from home

Adrián G mrroot5

Working from home
Block or report user

Report or block mrroot5

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
View didact-fiber.js
// Effect tags
const PLACEMENT = 1;
const DELETION = 2;
const UPDATE = 3;
function arrify(val) {
return val == null ? [] : Array.isArray(val) ? val : [val];
function reconcileChildrenArray(wipFiber, newChildElements) {
zhreshold /
Last active May 30, 2019
Check OS/Python/Cpu Info and Network connections
"""Diagnose script for checking OS/hardware/python/pip/mxnet/network.
The output of this script can be a very good hint to issue/problem.
import platform, subprocess, sys, os
import socket, time
from urllib.request import urlopen
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
skooltch84 / Highlight_Calendar_Main_Activity
Created Oct 18, 2016
Java Code used in my Highlight Events Calendar
View Highlight_Calendar_Main_Activity
package com.blogspot.skooltchdev.highlightcalendar;
import android.content.Context;
import android.os.Bundle;
import android.widget.Toast;
import com.github.sundeepk.compactcalendarview.CompactCalendarView;
commadelimited /
Created Nov 23, 2014
Multiple Flask URL routes on a single method
def show_course(slug=None, id=None):
# how do I know whether /print was used, or just normal?
jalcaldea /
Last active Jun 3, 2019
Small script that simplifies Telegram installation in ubuntu.
echo "============================================="
echo "== Telegram Script Installer v 0.1 =="
echo "== =="
echo "== by Jalcaldea =="
echo "============================================="
echo "Downloading necesary files..."
andrewslince / install casperjs (and phantomjs) on ubuntu
Last active Aug 5, 2019
simple tutorial for installing casperjs on ubuntu
View install casperjs (and phantomjs) on ubuntu
# install phantomjs
cd /usr/local/share
sudo wget
sudo tar xjf phantomjs-1.9.2-linux-x86_64.tar.bz2
sudo ln -s /usr/local/share/phantomjs-1.9.2-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs; sudo ln -s /usr/local/share/phantomjs-1.9.2-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs; sudo ln -s /usr/local/share/phantomjs-1.9.2-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
sudo apt-get install fontconfig
# install casperjs
cd /var/www/
git clone git://
maccevedor / origin
Created Jul 5, 2014
Saber cual origin esta utilizando mi repositorio en git
View origin
git remote show origin
swinton /
Last active Nov 18, 2019
Encrypt & Decrypt using PyCrypto AES 256 From
#!/usr/bin/env python
import base64
from Crypto import Random
from Crypto.Cipher import AES
BS = 16
pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS)
unpad = lambda s : s[0:-ord(s[-1])]
simplethemes / youtube-url.php
Created Nov 21, 2013
Extracts YouTube video ID from various URL structures
View youtube-url.php
$url = array (
julionc /
Last active Jan 23, 2020
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
You can’t perform that action at this time.