Skip to content

Instantly share code, notes, and snippets.

View sourcerebels's full-sized avatar

Edu Rodríguez Castillo sourcerebels

View GitHub Profile
@sourcerebels
sourcerebels / albert-test-extension.py
Created June 20, 2019 13:49
Albert test extension
"""Edu test extension"""
from albertv0 import *
import urllib3
import json
__iid__ = "PythonInterface/v0.1"
__prettyname__ = "MobileFinder"
__version__ = "0.1"
@sourcerebels
sourcerebels / README.md
Created February 10, 2019 16:26
Remove Retropie not favorite roms

Usage

It will print on standard output an script to remove all roms that are not marked as favorite in RetroPie.

python3 generate_rm_script_for_not_favorite_retropie_roms.py <system>

b.ex:

@sourcerebels
sourcerebels / README.md
Last active December 25, 2017 18:47
Linux Software for Android and Web development
  • Predawn theme
  • Bracket highlighter
  • Dockerfile syntax highlighting
@sourcerebels
sourcerebels / corners.html
Created November 17, 2017 08:44
Posicionar 4 divs en las esquinas de su div "parent"
<html>
<head>
<style>
.container {
position: relative;
background: #234543;
height: 100%;
}
.item {
background: #FF4545;
@sourcerebels
sourcerebels / ts-mokito-sample.ts
Created September 24, 2017 13:05
ts-mokito-sample.ts
import { mock, instance, when, verify, anyString, anyOfClass } from 'ts-mockito';
import { RequestOptions } from '@angular/http';
import { HttpService } from '../common/http/http.service';
import { LoginService } from './login.service';
import { RouterTestingModule } from '@angular/router/testing';
import { Observable } from 'rxjs';
{
"glossary": {
"title": "example glossary",
"GlossDiv": {
"title": "S",
"GlossList": {
"GlossEntry": {
"ID": "SGML",
"SortAs": "SGML",
"GlossTerm": "Standard Generalized Markup Language",
@sourcerebels
sourcerebels / MainActivity.java
Created March 10, 2017 21:18
Android Drag & Drop Sample
package com.sourcerebels.dragdrop;
import android.content.ClipData;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.DragEvent;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
xrandr --output DP1 --scale 2x2 --mode 1920x1080 --pos 0x0
xrandr --output eDP1 --scale 1x1 --mode 3200x1800 --pos 3900x0
@sourcerebels
sourcerebels / 0_reuse_code.js
Created October 19, 2016 06:31
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console