This file contains 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
#!/bin/bash | |
# Usage: ./mtgCardScraper.sh [search terms] | |
# Example: ./mtgCardScraper.sh "zombie" "angel" | |
# Searching for zombie.. | |
# Grabbed Zombie Apocalypse.jpg | |
# Searching for angel.. | |
# Grabbed Angel of Despair.jpg | |
# Please use responsibly. |
This file contains 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
#!/usr/bin/env ruby | |
# Sometimes, you realize you have really rubbish songs in your library for some reason. | |
# This script allows you to get rid of them just by hitting ./mpd-delete-current-song.rb on your command line. | |
# It will backup the file to TRASH, then remove it from MPD's library and finally skip to next song. | |
# https://gist.github.com/1341895 | |
require 'socket' | |
require 'fileutils' |
This file contains 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
#!/bin/bash | |
if [ -d "~/Pictures" ]; then | |
mkdir -p ~/Pictures | |
fi | |
TIME=$(date +"%s") | |
maim -s --opengl --shader=hippie -n ~/Pictures/${TIME}.png | |
if [ $? == 1 ]; then | |
if [ -f /usr/share/sounds/freedesktop/stereo/dialog-error.oga ]; then | |
cvlc /usr/share/sounds/freedesktop/stereo/dialog-error.oga -q --play-and-exit | |
fi |
This file contains 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
{ | |
"reagents": [ | |
{ | |
"id": "booster_enzyme", | |
"mix_phrase": "The solution shows signs of life, forming shapes!", | |
"name": "Booster Enzyme", | |
"required_reagents": { | |
"carbon": 1, | |
"diethylamine": 1, | |
"ethanol": 1, |
This file contains 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
## | |
# @file catme.py | |
# @brief Quickly bruteforces a mind-numbing test on catme.org, | |
# # Install | |
# Requires python-selenium and python. | |
# # To Use | |
# Simply run the file through a python interpreter with the first argument being your catme email, | |
# and the second argument being your catme password. (eg. `python catme.py u08888888@utah.edu myPassword123`) | |
# | |
# @author Dalton "naelstrof" Nell |
This file contains 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
#!/bin/bash | |
server="/mnt/charles/farmstore/content/${1}s" | |
url="http://farmpolice.com/content/${1}s" | |
imageEncoding=".png" | |
videoEncoding=".webm" | |
imagetake="/usr/share/sounds/freedesktop/stereo/screen-capture.oga" | |
videotake="/usr/share/sounds/freedesktop/stereo/complete.oga" | |
name=$(cat /dev/urandom | tr -cd 'a-f0-9' | head -c 8) | |
pidFile="/tmp/seen_record.pid" |
This file contains 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
# IMPORTANT: make sure no animation is assigned | |
# to the rig before you run this script, | |
# otherwise linked animation data will be corrupted. | |
import bpy | |
# ---------------------------------- | |
# Mixamo left/right bone names start with 'Left'/'Right' | |
# Instead we apply Blender's standard .L/.R suffix | |
# and get rid of long suffix |
This file contains 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
/* | |
Copyright (c) 2018 Pete Michaud, github.com/PeteMichaud | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains 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
// A function that calculates the initial velocity of a rigidbody to hit the end point within the specified flight time. | |
// Rigidbody must have drag set to 0, otherwise it wont work. | |
// Classical projectile physics (dx = v0*t, dy = v0*t-0.5gt^2 type stuff) | |
private Vector3 GetLaunchVelocity(float flightTime, Vector3 startingPoint, Vector3 endPoint) { | |
Vector3 gravityNormal = Physics.gravity.normalized; | |
Vector3 dx = Vector3.ProjectOnPlane(endPoint, gravityNormal) - Vector3.ProjectOnPlane(startingPoint, gravityNormal); | |
Vector3 initialVelocityX = dx/flightTime; | |
Vector3 dy = Vector3.Project(endPoint, gravityNormal) - Vector3.Project(startingPoint, gravityNormal); | |
Vector3 g = 0.5f * Physics.gravity * (flightTime * flightTime); |
This file contains 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
#if UNITY_EDITOR | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System.Text.RegularExpressions; | |
public class CopyAvatarData : ScriptableWizard { | |
public GameObject from; | |
public GameObject to; |
OlderNewer