Skip to content

Instantly share code, notes, and snippets.

View edolopez's full-sized avatar
🎯
Focusing

Eduardo Lopez De Leon edolopez

🎯
Focusing
View GitHub Profile
@p3t3r67x0
p3t3r67x0 / pseudo_elements.md
Last active July 25, 2025 09:29
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {
@rtt
rtt / tinder-api-documentation.md
Last active October 6, 2025 20:20
Tinder API Documentation

Tinder API documentation

Note: this was written in April/May 2014 and the API may has definitely changed since. I have nothing to do with Tinder, nor its API, and I do not offer any support for anything you may build on top of this. Proceed with caution

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

@jeduan
jeduan / apps_script_followers.md
Last active December 13, 2015 17:49
Made these quick functions to get the number of twitter followers and klout score of a given twitter username on Google Spreadsheets

Made these quick functions to get the number of twitter followers and klout score of a given twitter username.

Supports both @username and username as input.

To use them you have to create a Google Drive Spreadsheet and then go to Tools -> Script Editor, and then paste one or both Then the functions will be available as normal functions and you can use them as =followers(CELL_OR_SCREENNAME) and =klout(CELL_OR_SCREENNAME)

@defvol
defvol / prime.c
Last active December 12, 2015 07:58
438 bytes to print the biggest prime number (a cleaner version)
// All credits go to Fabrice Bellard http://bellard.org/mersenne.html
#include <stdio.h>
int m=167772161,N=1,t[1<<25]={2},a,*p,i,e=34893349,s,c,U=1;
g(d,h) {
for(i=s;i<1<<24;i*=2)d=d*1LL*d%m;
for(p=t;p<t+N;p+=s)
for(i=s,c=1;i;i--)
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007