Skip to content

Instantly share code, notes, and snippets.

View rosenpin's full-sized avatar

Tomer Rosenfeld rosenpin

View GitHub Profile
@rosenpin
rosenpin / Google Search MD
Last active July 22, 2022 02:41
CSS file to use with stylish making Google Search not look like garbage. Example Video https://www.youtube.com/watch?v=AIsyLJePiBc . Get it from here https://userstyles.org/styles/118142/google-search-md
@-moz-document url-prefix("https://www.google.com"), url-prefix("http://www.google.com"), url-prefix("https://www.google.co.il"), url-prefix("https://www.google.co.uk"), url-prefix("https://www.google.ru"), url-prefix("https://www.google.com"), url-prefix("http://www.google.com"), url-prefix("http://www.google.co.il"), url-prefix("http://www.google.co.uk"), url-prefix("http://www.google.ru") {
* {
font-family: "roboto", tahoma, arial, sans-serif !important;
}
.animated {
-webkit-animation-duration: 1s;
animation-duration: 1s;
animation-fill-mode: both;
static void printBestSubject(Node<Students> students) {
//Defining number of subjects to minimum
int numberOfSubjects = 0;
//Defining number of students to minimum
int numberOfStudents = 0;
//Defining a temp students node
Node<Students> student = students;
//Defining a temp grade node
Node<Grade> tempGrade = student.getData().getGrade();
//Checking the number of subjects for every student
if (options.size() < 5) {
final int optionSize = options.size();
for (int i = 0; i < 4 - optionSize; ) {
boolean toAdd = true;
for (int a = 0; a < optionSize; a++) {
if (options2.get(i).getTitle().equals(options.get(a).getTitle())) {
toAdd = false;
break;
}
}
/**
* Created by tomer on 2/25/16.
*/
import java.util.ArrayList;
import java.util.List;
import pirates.game.Direction;
import pirates.game.Location;
import pirates.game.Treasure;
package bots;
import java.util.ArrayList;
import java.util.List;
import org.omg.PortableInterceptor.LOCATION_FORWARD;
import pirates.game.Direction;
import pirates.game.Location;
import pirates.game.Treasure;
import pirates.game.Pirate;
07-07 15:21:29.450 1472-1472/? I/Timeline: Timeline: Activity_launch_request id:com.nianticlabs.pokemongo time:47905489
07-07 15:21:29.460 878-1562/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.nianticlabs.pokemongo/com.unity3d.player.UnityPlayerNativeActivity (has extras)} from uid 10075 on display 0
07-07 15:21:29.460 878-1562/? D/ResourcesManager: creating new AssetManager and set to /data/app/com.nianticlabs.pokemongo-1/base.apk
07-07 15:21:29.550 878-910/? I/ActivityManager: Start proc com.nianticlabs.pokemongo for activity com.nianticlabs.pokemongo/com.unity3d.player.UnityPlayerNativeActivity: pid=13384 uid=10185 gids={50185, 9997, 3002, 3001, 1028, 1015, 3003} abi=armeabi-v7a
07-07 15:21:29.620 13384-13384/? D/ResourcesManager: creating new AssetManager and set to /data/app/com.nianticlabs.pokemongo-1/base.apk
07-07 15:21:30.140 878-1058/? I/ActivityManager: Displayed com.nianticlabs.pokemongo/com.unity3d.player.UnityPlayerNa
@rosenpin
rosenpin / pokemon-list.java
Created July 22, 2016 04:31
List of all the gen 1 Pokemon in java
String[] pokemon = {
"BULBASAUR", "IVYSAUR", "VENUSAUR", "CHARMANDER", "CHARMELEON", "CHARIZARD", "SQUIRTLE", "WARTORTLE", "BLASTOISE", "CATERPIE", "METAPOD", "BUTTERFREE", "WEEDLE", "KAKUNA", "BEEDRILL", "PIDGEY", "PIDGEOTTO", "PIDGEOT", "RATTATA", "RATICATE", "SPEAROW", "FEAROW", "EKANS", "ARBOK", "PIKACHU", "RAICHU", "SANDSHREW", "SANDSLASH", "NIDORAN", "NIDORINA", "NIDOQUEEN", "NIDORAN", "NIDORINO", "NIDOKING", "CLEFAIRY", "CLEFABLE", "VULPIX", "NINETALES", "JIGGLYPUFF", "WIGGLYTUFF", "ZUBAT", "GOLBAT", "ODDISH", "GLOOM", "VILEPLUME", "PARAS", "PARASECT", "VENONAT", "VENOMOTH", "DIGLETT", "DUGTRIO", "MEOWTH", "PERSIAN", "PSYDUCK", "GOLDUCK", "MANKEY", "PRIMEAPE", "GROWLITHE", "ARCANINE", "POLIWAG", "POLIWHIRL", "POLIWRATH", "ABRA", "KADABRA", "ALAKAZAM", "MACHOP", "MACHOKE", "MACHAMP", "BELLSPROUT", "WEEPINBELL", "VICTREEBEL", "TENTACOOL", "TENTACRUEL", "GEODUDE", "GRAVELER", "GOLEM", "PONYTA", "RAPIDASH", "SLOWPOKE", "SLOWBRO", "MAGNEMITE", "MAGNETON", "FARFETCHD", "DODUO", "DODRIO", "SEEL",
@rosenpin
rosenpin / AS-generate-signed.sh
Created September 29, 2016 23:36
generate signed apk with xdotool
xdotool keydown alt && xdotool keydown b && xdotool keyup alt && xdotool keyup b && xdotool keydown 111 && xdotool keyup 111 && xdotool keydown 111 && xdotool keyup 111 && xdotool keydown 111 && xdotool keyup 111 && xdotool keydown 36 && xdotool keyup 36
@rosenpin
rosenpin / Android Music Players Package Names
Created January 15, 2017 18:25
An array of as many music players package names as I could find, feel free to contribute
final String[] musicAppsPackageNames = {
"com.spotify.music",
"com.google.android.music",
"com.apple.android.music",
"com.Project100Pi.themusicplayer",
"media.audioplayer.musicplayer",
"com.musicplayer.player.mp3player.white",
"com.sec.android.app.music",
"com.zentertain.music.player",
"com.kodarkooperativet.blackplayerfree",
@rosenpin
rosenpin / ImgesGetter.js
Created April 23, 2017 14:58
bota.to Downloader - Botato manga/comics downloader
//Run this in the console in your browser while having the manga you would like to download open
function readAndNext(){
setTimeout(function(){
console.log(document.getElementById("comic_page").src.substr(0, document.getElementById("comic_page").src.indexOf("/img00")))
document.querySelectorAll('[title="Next Chapter"]')[0].click()
readAndNext()
},3000)
}