Skip to content

Instantly share code, notes, and snippets.

View krruzic's full-sized avatar
💭
Hacking the planet.

Kristopher Ruzic krruzic

💭
Hacking the planet.
View GitHub Profile
@krruzic
krruzic / ssbu_css.py
Last active January 12, 2020 00:44
Smash Ultimate renders courtesy of WarChamp7
from bs4 import BeautifulSoup
import requests
homepage = requests.get("https://apps.warchamp7.com/smash/rosterUlt/")
hp_soup = BeautifulSoup(homepage.text, features="lxml")
characters = hp_soup.find(id="IconList").find_all("label")
names = ["_".join(character["for"].split("_")[1:]) for character in characters]
portraits = {}
for name in names[0:-1]: # remove random
print(f'Saving CSS renders for: {name}')
@krruzic
krruzic / blah.html
Created November 8, 2018 20:19
AJAX GET with Jquery
<div>
<h1>sucess data</h1>
<pre class="jsondata"></pre>
<br>
<h1>fail data</h2>
<pre class="jsonfail"></pre>
</div>
@krruzic
krruzic / HOWTO.md
Created May 9, 2018 15:02
Custom Uri Scheme in Xamarin.Forms with Android

First you need to register it in your AndroidManifest.xml To do this, put the following block inside the <application> tag. "android:name" should correspond to the activity you want to handle the uri... with forms you should probably just leave it as ".MainActivity".

<activity android:icon="@drawable/icon" android:label="Name of App" android:name=".MainActivity"> 
	<intent-filter>
		<action android:name="android.intent.action.VIEW" />
		<category android:name="android.intent.category.DEFAULT" />
		<category android:name="android.intent.category.BROWSABLE" />
		<data android:scheme="YOURSCHEME" />
@krruzic
krruzic / TrtlServer.py
Last active March 19, 2018 20:47
Simple wrapper for TurtleCoind
import json
from jsonrpc_requests import Server # pip install jsonrpc-requests
# override class for the default Server adding special Turtlecoin auth
class TrtlServer(Server):
def __init__(self, rpc_password, url, session=None):
self.rpc_password=rpc_password
super().__init__(url, session)
def dumps(self, data):

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@krruzic
krruzic / menu.json
Last active February 27, 2017 07:37
BP menu, flattened :)
{
"Menu":[
{
"CategoryName": "Starters",
"Description": "Anyone can serve wings in a basket. Introducing Wings Two-Four: Twenty-four wings served in a little beer case.",
"Content":[
{
"description":"A triple order of wings in one little beer case. Choose two of your favourite flavours. You\u2019d better bring your appetite.",
"show_quick_add":false,
"image":"https://images.krruzic.xyz/Wings%20USE.png",
@krruzic
krruzic / dennyshack.py
Last active January 17, 2017 00:06
Get free points from mydennys.ca
import requests
import random
from faker import Faker
from bs4 import BeautifulSoup
def createAccount(email):
fake = Faker()
r = s.get("http://mydennys.ca/index")
cook = r.cookies
fname = fake.first_name()