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
17a18,21 | |
> /* vendor/product ID for 8BitDo Ultimate Wired Xbox */ | |
> #define GIP_GP_VID_8BITDO 0x2dc8 | |
> #define GIP_GP_PID_8BITDO_ULTIMATE_WIRED_XBOX 0x2002 | |
> | |
258c262,268 | |
< input_report_key(dev, KEY_RECORD, !!pkt_xs->share_button); | |
--- | |
> u8 share_button; | |
> if (client->hardware.vendor == GIP_GP_VID_8BITDO && |
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
{-# LANGUAGE DeriveDataTypeable #-} | |
import Codec.Picture | |
import Data.Numbers.Primes | |
import System.Console.CmdArgs.Implicit | |
import Prelude hiding (exponent) | |
import System.IO | |
import System.Exit | |
data Options = Options | |
{ exponent :: Double |
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 python2 | |
""" | |
SYNOPSIS | |
video-rotate [-h,--help] [-v,--verbose] [--version] | |
DESCRIPTION | |
Rotate a video around the x-axis. Frames are output as PNG files | |
but can be reconstructed into a video with ffmpeg or another |
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
/* | |
* This file is part of FFmpeg. | |
* | |
* FFmpeg is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either | |
* version 2.1 of the License, or (at your option) any later version. | |
* | |
* FFmpeg is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
# Eli Dai a11062387 | |
# VIS 198 assignment 2 | |
import pygame | |
import hashlib | |
import jobD | |
class Render: | |
def __init__(self): | |
return |
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/perl | |
##### | |
# | |
# This script scales an input video to be the duration provided. | |
# | |
# usage: | |
# scale-video.pl [-a audiofile] [-b bitrate] -d hh:mm:ss infile outfile | |
# | |
# The bitrate should be in kbps |
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
#include <stdio.h> | |
#include "serial.h" | |
#include <avr/pgmspace.h> | |
int main(void) { | |
serial_init(19200); | |
int i; | |
char buffer[8]; |
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
-- Project Euler Problem 45 | |
-- | |
-- Triangle, pentagonal, hexagonal | |
-- | |
-- Triangle, pentagonal, and hexagonal numbers are generated by the following formulae: | |
-- Triangle Tn=n(n+1)/2 1, 3, 6, 10, 15, ... | |
-- Pentagonal Pn=n(3n−1)/2 1, 5, 12, 22, 35, ... | |
-- Hexagonal Hn=n(2n−1) 1, 6, 15, 28, 45, ... | |
-- | |
-- It can be verified that T285 = P165 = H143 = 40755. |
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
-- Project Euler Problem 36 | |
-- Double-base palindromes | |
-- | |
-- The decimal number, 585 = 1001001001 base 2 (binary), is palindromic in both bases. | |
-- | |
-- Find the sum of all numbers, less than one million, which are palindromic in | |
-- base 10 and base 2. | |
-- | |
-- (Please note that the palindromic number, in either base, may not include | |
-- leading zeros.) |
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
-- Project Euler Problem 37 | |
-- The number 3797 has an interesting property. Being prime itself, it is | |
-- possible to continuously remove digits from left to right, and remain prime | |
-- at each stage: 3797, 797, 97, and 7. Similarly we can work from right to | |
-- left: 3797, 379, 37, and 3. | |
-- | |
-- Find the sum of the only eleven primes that are both truncatable from left | |
-- to right and right to left. | |
-- | |
-- NOTE: 2, 3, 5, and 7 are not considered to be truncatable primes. |
NewerOlder