Skip to content

Instantly share code, notes, and snippets.


Diego diegorv

View GitHub Profile
View DynamicContentTab.js
import React from 'react';
import { View, StyleSheet, ActivityIndicator } from 'react-native';
import { FlatList } from '../searchBarAnimation';
import { List, ListItem } from 'react-native-elements';
export default class Tab extends React.PureComponent {
constructor(props) {
this.state = {
View remove-twitter-likes.js
// go to your account Likes page and run this in the console:
function scrollToLoadMore() {
// keep scrolling if twitter tries to stop loading more.
// scroll up, then down to force infinite load.
window.scrollTo(0, 0);
setTimeout(function() {
window.scrollBy(0, 9999999999);
}, 200);
diegorv / javascript
Created Jul 18, 2018
Estoicismo Diário
View javascript
var posts = document.querySelectorAll("[data-action='open-post']");
for (i = 0; i < posts.length; i++) {

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.

Effective Engineer - Notes

What's an Effective Engineer?


Keybase proof

I hereby claim:

  • I am diegorv on github.
  • I am diegorv ( on keybase.
  • I have a public key whose fingerprint is 0D84 2B4B 23F1 DE3A C4E6 ADE1 ACF5 FD21 E214 28F2

To claim this, I am signing this object:

View sublime.json
"afterglow_folder_icons": true,
"always_show_minimap_viewport": false,
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"color_scheme": "Packages/User/SublimeLinter/1337 (SL).tmTheme",
"draw_indent_guides": true,
"draw_minimap_border": false,
"ensure_newline_at_eof_on_save": true,
"font_face": "Hack",
View gist:53627b0575d556c70b0f
// Programa: Web Server com modulo ESP8266
// Alteracoes e adaptacoes: FILIPEFLOP
#include "ESP8266.h"
#include "SoftwareSerial.h"
// Cria uma serial nas portas 2 (RX) e 3 (TX)
SoftwareSerial esp8266(2 , 3);
// Define que o modulo ira utilizar a serial minhaSerial
View gist:9999799
bind "F10" "amx_on; amx_say random [ Desbugando ];amx_rcon sv_timeout 1;wait;wait;wait;wait;wait;amx_rcon sv_timeout 99999; amx_rcon sv_timeout 65;amx_execall speak buttons/button1;speak buttons/button1"
bind "F7" "amx_rcon sv_restart 1"
bind "F6" "amx_say [Cpl Off]; amx_rcon mp_friendlyfire 0; amx_rcon mp_startmoney 16000; amx_rcon mp_roundtime 2.50; amx_rcon mp_c4timer 35; amx_rcon mp_freezetime 0; amx_rcon mp_buytime 2.50; amx_rcon mp_timeleft 0; amx_rcon mp_timelimit 0; amx_rcon mp_maxrounds 0; amx_rcon sv_alltalk 0; amx_rcon mp_forcechasecam 0; amx_rcon mp_forcecamera 0; amx_rcon mp_autoteambalance 0; amx_rcon mp_limitteams 0; mp_autokick 1"
bind "F5" "amx_say [Cpl On]; amx_rcon mp_freezetime 15;amx_rcon mp_c4timer 35;amx_rcon mp_maxrounds 0;amx_rcon mp_tkpunish 0;amx_rcon mp_startmoney 800;amx_rcon mp_friendlyfire 1;amx_rcon mp_roundtime 1.75;amx_rcon mp_limitteams 0;amx_rcon mp_autoteambalance 0;amx_rcon mp_friendlyfire 1;amx_rcon allow_spectators 1;amx_rcon sv_alltalk 0;amx_rcon mp_forcecamera 2;amx_r
diegorv / rfid_decimal.pde
Created Sep 6, 2012 — forked from maniacbug/rfid_decimal.pde
Complete example for reading the 125Khz RFID module RDM630
View rfid_decimal.pde
#include <SoftwareSerial.h>
// Pin definitions
const int rfid_irq = 0;
const int rfid_tx_pin = 6;
const int rfid_rx_pin = 7;
// For communication with RFID module
SoftwareSerial rfid(rfid_tx_pin, rfid_rx_pin);
View gist:1780157
{:name => 'BronzeBusiness' ,
:url => '',
:fields => %w(logradouro nome bairro UF cidade)
{:name => 'RepublicaVirtual' ,
:url => '',
:fields => %w(tipo_logradouro logradouro bairro uf cidade)
{:name => 'Paicon' ,