This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * This class was created by <Vazkii>. It's distributed as | |
| * part of the Psi Mod. Get the Source Code in github: | |
| * https://github.com/Vazkii/Psi | |
| * | |
| * Psi is Open Source and distributed under the | |
| * CC-BY-NC-SA 3.0 License: https://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB | |
| * | |
| * File Created @ [11/01/2016, 22:00:30 (GMT)] | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * OpenSimplex (Simplectic) Noise Test for Unity (C#) | |
| * This file is in the Public Domain. | |
| * | |
| * This file is intended to test the functionality of OpenSimplexNoise.cs | |
| * Attach this script to a GameObject with mesh (eg a Quad prefab). | |
| * Texture is updated every frame to assist profiling for performance. | |
| * Using a RenderTexture should perform better, however using a Texture2D | |
| * as an example makes this compatible with the free version of Unity. | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * OpenSimplex (Simplectic) Noise in C++ | |
| * by Arthur Tombs | |
| * | |
| * Modified 2015-01-08 | |
| * | |
| * This is a derivative work based on OpenSimplex by Kurt Spencer: | |
| * https://gist.github.com/KdotJPG/b1270127455a94ac5d19 | |
| * | |
| * Anyone is free to make use of this software in whatever way they want. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import praw # simple interface to the reddit API, also handles rate limiting of requests | |
| import re | |
| from collections import deque | |
| from time import sleep | |
| USERNAME = "Your username here" | |
| PASSWORD = "Your password here" | |
| USERAGENT = "Your useragent string here. It should include your /u/username as a courtesy to reddit" | |
| r = praw.Reddit(USERAGENT) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| headers = { | |
| 'User-Agent': 'CurseForge Uploader Script/1.0', | |
| 'X-API-Key': YOUR_KEY | |
| } | |
| files = {'file': ('MyFile.zip', open('MyFile.zip', 'r'))} | |
| data = { | |
| 'name': 'Version Banana', |