Skip to content

Instantly share code, notes, and snippets.

View Yiabiten's full-sized avatar

Youness IABITEN Yiabiten

View GitHub Profile
@cankei
cankei / remove-pokemons-pokevision
Last active July 26, 2016 09:56
Filter out unwanted pokemons on pokevision.com
var pokemonsToRemove = [10, 13, 16, 19, 21, 23, 27, 29, 32, 35, 39, 41, 46, 48, 54, 60, 69, 72, 79, 84, 86, 90, 98, 99, 100, 101, 102, 104, 106, 107, 109, 111, 114, 116, 118, 120, 127, 129, 133, 140]
for (var o = 0; o < pokemonsToRemove.length; o++) {
var duplicates = $("img[src$='//ugc.pokevision.com/images/pokemon/" + pokemonsToRemove[o] + ".png']")
for (var i = 0; i < duplicates.length; i++) {
$(duplicates[i].parentElement).hide();
}
}
@msurguy
msurguy / eloquent.md
Last active February 8, 2022 03:13
Laravel 4 Eloquent Cheat Sheet.

Conventions:

Defining Eloquent model (will assume that DB table named is set as plural of class name and primary key named "id"):

class Shop extends Eloquent {}

Using custom table name

protected $table = 'my_shops';