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
require 'pry' | |
require_relative 'player' | |
# Two player math game. | |
class MathGame | |
RANDOM_MAX = 5 | |
# Starts the program. | |
def initialize |
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
var array = []; | |
var arrayOfLight = function(x) { | |
for (i = 0; i < (x+1); i++) { | |
array.push(i); | |
} | |
console.log(array); | |
}; | |
arrayOfLight(10); |
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
"use strict"; | |
$(document).ready(function() { | |
var form = document.forms[0]; | |
var bet = document.getElementById("bet"); | |
var guess = document.getElementById("guess"); | |
var balance = 100; | |
var minBalance = 0; |
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
<!doctype html> | |
<html> | |
<head>Ajax Example</head> | |
<body> | |
<section> | |
<h1>Recent Posts</h1> | |
<article> | |
<h2>Post 1</h2> | |
<p>This is post1.</p> | |
</article> |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Coin : MonoBehaviour | |
{ | |
public GameObject coinPoof; | |
private static int coinsCollected = 0; | |
public int CoinsCollected |
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
# Common Settings | |
Home Button (Remote) -> Home Dashboard -> Gear Icon (Top Right) -> Edit Inputs -> Change input icon to PC (IMPORTANT for 4:4:4 Chroma - text clarity is atrocious without it) | |
General -> Always Ready -> Disabled | |
General -> AI Service -> Everything Disabled | |
General -> OLED Care -> Care Picture Settings -> Off | |
General -> OLED Care -> Device Self Care -> Energy Saving -> Energy Saving Step -> Off | |
General -> OLED Care -> Device Self Care -> Energy Saving -> Screen Off -> Off | |
General -> OLED Care -> OLED Panel Care -> Screen Move -> Off | |
General -> OLED Care -> OLED Panel Care -> Adjust Logo Brightness -> Off | |
General -> OLED Care -> OLED Panel Care -> Care Recommendations -> Off |
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
# 1. Install nvidia-settings | |
$ pacman -Syu nvidia-settings | |
# 2. Run nvidia-settings | |
$ nvidia-settings | |
# 3. Set the correct refresh-rate in nvidia-settings (e.g. 120hz) | |
# X Server Display Configuration -> Set refresh-rate to desired, and Apply | |
# 4. Set the correct refresh-rate in Gnome | |
# Settings -> Display -> Set refresh-rate to match previous step | |
# 5. Verify Gnome's monitors settings are correct | |
$ code ~/.config/monitors.xml |
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
# ~/.config/rofi/config.rasi | |
# repo: https://github.com/davatorium/rofi | |
# I found/modified this config from somewhere, but I forget where! | |
configuration { | |
display-drun: "Applications:"; | |
display-window: "Windows:"; | |
drun-display-format: "{name}"; | |
font: "DM Mono Medium 10"; | |
modi: "window,run,drun"; |
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 | |
for i in *.mkv; do | |
[ -f "$i" ] || break | |
OUTPUT="${i%.mkv}.mp4" | |
ffmpeg -i "$i" -c copy "$OUTPUT" | |
done |
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/sh | |
# Quick run: bash -c "$(curl -L https://git.io/fjToH)" | |
# CTRL+W to exit | |
set -euf | |
unsetopt FLOW_CONTROL GLOB NO_MATCH NO_SH_WORD_SPLIT NO_PROMPT_SUBST 2>/dev/null || : | |
write () | |
{ |
OlderNewer