Skip to content

Instantly share code, notes, and snippets.

@satanas
satanas / test1.json
Created May 7, 2021 00:30
Fastest Lap Test 4
// downforce: 5,
// tireCompound: "C3",
// tireLifespan: 100% (90km)
{
"requestId": "e627f0cf-94cd-46a8-a077-6df57ce89d0e",
"lapResult": {
"racerId": "024b8b9f-11e7-48f5-8630-177a5956a415",
"lapNumber": 4,
"startingPosition": 1,
"endingPosition": 1,
@satanas
satanas / test1.json
Last active May 5, 2021 18:54
Fastest Lap Test 3
// downforce: 5,
// tireCompound: "C3",
// tireLifespan: 100% (90km)
{
"requestId": "e6a6c77c-0198-44a4-90e6-261003d565b6",
"lapResult": {
"racerId": "bbda1e79-efb7-4dc7-a38f-085d0507a248",
"lapNumber": 3,
"startingPosition": 1,
"endingPosition": 1,
@satanas
satanas / test1.json
Last active May 5, 2021 18:49
Fastest Lap Test 2
// downforce: 5,
// tireCompound: "C3",
// tireLifespan: 100% (90km)
{
"requestId": "50fffd89-7235-4e57-8fd6-9d7bba1a332b",
"lapResult": {
"racerId": "2a435846-9869-4843-bb7c-27a1bf31b557",
"lapNumber": 4,
"startingPosition": 1,
"endingPosition": 1,
@satanas
satanas / test1.json
Created May 4, 2021 02:15
Fastest Lap Test
// downforce = 5
// compound = C3
// lifespan = 100%
{
"requestId": "1391dc86-31a9-4fab-9374-b4984089fb64",
"lapResult": {
"racerId": "b7421acb-3621-4db9-8502-04ba7f9bb193",
"lapNumber": 4,
"startingPosition": 1,
"endingPosition": 1,
@satanas
satanas / all-time-contributions.py
Created December 29, 2020 03:10
All Time Github Contributions
import sys
import requests
CONTRIBUTIONS_BASE_URL = 'https://api.github.com/repos/{}/{}/stats/contributors'
CONTRIBUTORS_BASE_URL = 'https://api.github.com/repos/{}/{}/contributors'
ORG_REPOS_BASE_URL = 'https://api.github.com/orgs/{}/repos'
AUTH_USER_REPOS = 'https://api.github.com/users/walvarezrodrigu/repos'
USER_REPOS = 'https://api.github.com/user/repos'
TGREEN = '\033[32m'
TYELLOW = '\033[33m'
@satanas
satanas / character_dnd.json
Last active August 19, 2019 01:16
List of characters for Asycn DnD
{
"satanas82": "",
"asdrubalivan": "https://www.dndbeyond.com/characters/15341272",
"iamjinme": "https://www.dndbeyond.com/characters/15376426",
"jobliz": "https://www.dndbeyond.com/characters/15314946",
"sergsss": "https://www.dndbeyond.com/characters/15353131",
"sadasant": "https://www.dndbeyond.com/characters/15314217",
"rogs21": "",
"dll32exe": ""
}
@satanas
satanas / keybase.md
Created March 12, 2019 22:05
keybase.md

Keybase proof

I hereby claim:

  • I am satanas on github.
  • I am satanas (https://keybase.io/satanas) on keybase.
  • I have a public key ASCFOrPQiXTtckgBaJEw4Z9lbgQJEMHrOZe657PwiWMN9go

To claim this, I am signing this object:

@satanas
satanas / scrolling_bg.md
Last active December 29, 2023 01:07
Scrolling Background in Unity

Scrolling Background in 2D

  1. Select the original Texture (not the GameObject).
  2. Change Texture Type to Sprite (2D and UI).
  3. Change Wrap Mode to Repeat.
  4. Click Apply.
  5. Create a Quad object: GameObject -> 3D Object ->Quad.
  6. Scale the Quad to the size you want.
  7. Create a light: GameObject->Light->Directional Light.
  8. Adjust the light intensity to whatever you like.
@satanas
satanas / ruby_install.md
Last active September 28, 2018 19:31
Install and set up ruby without rvm/rbenv

First, install ruby-build and chruby:

brew install chruby ruby-build

Then install your ruby version:

ruby-build 2.1.0 ~/.rubies/ruby-2.1.0
@satanas
satanas / main.py
Last active January 13, 2018 07:12
AWS Lambda 101
import requests
def handler(event, context):
response = requests.get('https://httpbin.org/ip')
return 'Hello, {1}. Your IP address is {0}'.format(response.json()['origin'], event['first_name'])