Skip to content

Instantly share code, notes, and snippets.

View gabrielkw's full-sized avatar

gabrielkw

View GitHub Profile
@gabrielkw
gabrielkw / steamHomecontentUrlGen.js
Created May 9, 2017 13:09
Steam reviews scraper
var language = "french";
var appId = '275850';
var page = '1'
var userReviewsOffset = (page-1)*10;
var steamLink = `view-source:http://steamcommunity.com/app/${appId}/homecontent/?userreviewsoffset=${userReviewsOffset}&p=${page}&workshopitemspage=${page}&readytouseitemspage=${page}&mtxitemspage=${page}&itemspage=${page}&screenshotspage=${page}&videospage=${page}&artpage=${page}&allguidepage=${page}&webguidepage=${page}&integratedguidepage=${page}&discussionspage=${page}&numperpage=10&browsefilter=toprated&browsefilter=toprated&l=${language}&appHubSubSection=10&filterLanguage=default&searchText=&forceanon=1`;
console.log(steamLink);
// Árvore AVL em C
#include <stdio.h>
#include <stdlib.h>
int maiorEntre(int a, int b) {
if(a > b) {
return a;
} else {
return b;
@gabrielkw
gabrielkw / raycasting.go
Last active July 25, 2018 01:37
SDL2 raycasting in golang
package main
import (
"fmt"
"github.com/veandco/go-sdl2/sdl"
"math"
"os"
)
var winTitle string = "Go-SDL2 Render"
@gabrielkw
gabrielkw / saveScrolling.user.js
Last active March 1, 2016 20:39
Save the verical scrolling status of your navigation for later restoring
// ==UserScript==
// @name Save Scrolling by Gabriel Antunes
// @namespace saveScrolling
// @include *
// @version 1
// @grant GM_registerMenuCommand
// ==/UserScript==
function saveScrolling(){
localStorage.setItem(window.location.pathname,window.pageYOffset);