Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
/** | |
* dualshock4.h - DualShock 4 USB HID Report Helper | |
* | |
* NOTE: Do not use this for production purposes, it's far from complete and is my | |
* initial attempt at working with USB HID. If it doesn't work, too bad. | |
* (Hoping to put this into content/browser/gamepad someday. If I ever finish.) | |
** | |
* Copyright (c) 2014 Sangwhan Moon | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy |
#!/bin/bash | |
set -e #quit on error stuff! | |
#This script was only testing on linux mint 16, with a large pile of custom tweaking. | |
#This file should be used more as a "guide line" than anything else... | |
# PLEASE edit certain settings before going around and running this! to make sure of that I | |
# have the next line kill the script unless commented out! | |
echo "You forgot to set up this file! Edit it with correct paths to use!" && exit 0 |
// quick hack job by @mmalex | |
// thanks to libhid author and @johndrinkwater and https://github.com/chrippa/ds4drv | |
#include <stdio.h> | |
#include "hidapi.h" // using http://www.signal11.us/oss/hidapi/ | |
typedef unsigned char u8; | |
typedef unsigned short u16; | |
typedef unsigned int u32; | |
#pragma pack(push, 1) |
#!/bin/bash -e | |
# | |
# Copyright (c) 2012-2013 Robert Nelson <robertcnelson@gmail.com> | |
# | |
# 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: |
/* * * * * * * | |
Main File | |
Tristan Madden | |
1/3/2018 | |
* * * * * * * */ | |
//ffmpeg -i test.mp4 -i music.mp3 -codec copy -shortest output.mp4 | |
//ffmpeg -r 60 -f image2 -s 3840x2160 -i frame-%04d.tif -c:v libx264 -preset slow -profile:v high -crf 9 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low test4.mp4 | |
OpenSimplexNoise noise; |
public class VerhoeffValidator { | |
/** | |
* @see <a href="http://en.wikipedia.org/wiki/Verhoeff_algorithm/">More | |
* Info</a> | |
* @see <a href="http://en.wikipedia.org/wiki/Dihedral_group">Dihedral | |
* Group</a> | |
* @see <a href="http://mathworld.wolfram.com/DihedralGroupD5.html">Dihedral | |
* Group Order 10</a> | |
* @author Colm Rice | |
*/ |
#!/usr/bin/env python | |
"""\ | |
Extract files from Hotline Miami 2 WAD files. | |
Usage: | |
hlm2-dewad --help | |
hlm2-dewad [--flatten] <wad-path> [<path>] | |
hlm2-dewad --list <wad-path> | |
Options: |
// Making an anonymous recursive function | |
// -------------------------------------- | |
// 1. Create a basic *named* factorial function, which recursively calls itself | |
function factorial(n) { | |
if (n === 0) { | |
return 1; |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
//!HOOK MAINPRESUB | |
//!BIND HOOKED | |
//!DESC un360 | |
#define M_PI 3.1415926535897932384626433832795 | |
const float fov = M_PI/2; // [0 to M_PI] horizontal field of view, range is exclusive | |
const float yaw = M_PI*1; // [any float] polar angle, one full revolution is 2*M_PI | |
const float pitch = M_PI*0; // [any float] vertical tilt, positive is up | |
const float roll = M_PI*0; // [any float] view rotation, positive is clockwise |