Skip to content

Instantly share code, notes, and snippets.

View nukeop's full-sized avatar

nukeop

View GitHub Profile
@nukeop
nukeop / SimplexEffects.cs
Created July 26, 2016 07:59
simplex noise shader for unity
using UnityEngine;
using System.Collections;
using System.Linq;
public class SimplexEffects : MonoBehaviour {
private Material MyMaterial;
public float AnimSpeed;
public Vector3 NoiseOffset;
public Vector3 NoiseScale;
@nukeop
nukeop / dissolve.shader
Last active April 8, 2022 12:20
Dissolve shader for Unity
Shader "Unlit/DissolveEffectShader"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_NoiseTex ("Texture", 2D) = "white" {}
[MaterialToggle] PixelSnap ("Pixel snap", Float) = 0
_EdgeColour1 ("Edge colour 1", Color) = (1.0, 1.0, 1.0, 1.0)
_EdgeColour2 ("Edge colour 2", Color) = (1.0, 1.0, 1.0, 1.0)
_Level ("Dissolution level", Range (0.0, 1.0)) = 0.1
// ==UserScript==
// @name New Userscript
// @namespace http://4chan.org
// @version 0.1
// @description Paste a post into a crying soyjak image
// @author (You)
// @include https://*.4chan*.org/*
// @grant none
// ==/UserScript==
@nukeop
nukeop / queueplayer.test.js
Created December 11, 2019 00:03
prop injection
import React from 'react';
import { Provider } from 'react-redux';
import { bindActionCreators } from 'redux';
import { withProps, compose } from 'recompose';
import PlayerReducer from '../../app/reducers/player';
import { resetPlayer } from '../../app/actions/player';
import { QueueMenuMore } from '../../app/components/PlayQueue/QueueMenu/QueueMenuMore';
import Seekbar from '../../app/components/Seekbar';
import { mount } from 'enzyme';
@nukeop
nukeop / keyboard.json
Last active July 27, 2019 00:35
keyboard layout for xd75
["~\n\n\n\n\n\n`\n\n\nEsc",{a:5},"[\n{","]\n}","\\\n|",{a:7},"Home","End",{c:"#00c6e0",a:5},"&\n\n\n\n\n\n7","*\n\n\n\n\n\n8","(\n\n\n\n\n\n9",{c:"#cccccc"},"Pg\n\n\n\n\n\nDown","Pg\n\n\n\n\n\nUp","Prt\n\n\n\n\n\nScr","_\n\n\n\n\n\n-","+\n\n\n\n\n\n=",{a:7},"Bksp"],
["Tab","Q","W","E","R","T",{c:"#00c6e0",a:5},"$\n\n\n\n\n\n4","%\n\n\n\n\n\n5","^\n\n\n\n\n\n6",{c:"#cccccc",a:7},"Y","U","I","O","P",{a:5},"\"\n\n\n\n\n\n'"],
[{c:"#00c6e0",a:7},"Hyper",{c:"#cccccc"},"A","S","D","F","G",{c:"#00c6e0",a:5},"!\n\n\n\n\n\n1","@\n\n\n\n\n\n2","#\n\n\n\n\n\n3",{c:"#cccccc",a:7},"H","J","K","L",{a:5},":\n\n\n\n\n\n;",{c:"#00c6e0",a:7},"Enter"],
["Shift",{c:"#cccccc"},"Z","X","C","V","B",{c:"#00c6e0",a:5},")\n\n\n\n\n\n0",{a:7,fa:[8]},"&uarr;",{f:3},"Ins",{c:"#cccccc",f:3},"N",{f:3},"M",{a:5,f:3},"<\n\n\n\n\n\n,",{f:3},">\n\n\n\n\n\n.",{sm:"cherry",sb:"gateron",st:"KS-3-White",f:3},"?\n\n\n\n\n\n/",{c:"#00c6e0",a:7,f:3},"Shift"],
[{f:3},"Ctrl",{c:"#cccccc",f:3},"Meta",{f:3},"Alt",{f:3},"Fn0",{w:2},"",{c:"#00c6e0",f:3},"&
rofi usage:
rofi [-options ...]
Command line only options:
-no-config Do not load configuration, use default values.
-v,-version Print the version number and exit.
-dmenu Start in dmenu mode.
-display [string] X server to contact.
${DISPLAY}
-h,-help This help message.
import requests
import re
import urllib.request
import tqdm
from bs4 import BeautifulSoup, SoupStrainer
page = requests.get('http://mightandmagic.wikia.com/wiki/Category:Heroes_V_hero_icons')
page = page.text
page = BeautifulSoup(page, 'lxml')
page = page.find_all('a', href=re.compile('.*File:Hero.*png'))