-
From the iTerm2 menu, go to Settings.
-
Select the Profiles tab.
-
Head to the Keys section.
-
This will make common editing shortcuts work as expected.
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
{ | |
"explorer.sortOrder": "default", | |
"explorer.confirmDelete": false, | |
"explorer.confirmDragAndDrop": false, | |
"workbench.iconTheme": "vscode-icons", | |
"editor.tabSize": 2, | |
"editor.insertSpaces": true, | |
"editor.detectIndentation": false, | |
"editor.largeFileOptimizations": true, | |
"editor.rulers": [ |
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
// You have been hired as a programmer by the University of O'Connor to create a program that will calculate the final grades of the students. | |
// Professors are spending too much time calculating grades manually, so we need to automate the process. | |
// Requirements: | |
// 1. Convert the average score to a letter grade using the following scale: A: 90-100, B: 80-89, C: 70-79, D: 60-69, F: 0-59 | |
// 2. Display the results in the format: "Student Name: Letter Grade (Average Score)" | |
// 3. Organize the students name in alphabetical order from A to Z in the output. | |
// You are allowed to change anything in the code except: | |
// 1. The LoadStudentDataFromSystem method and its contents |
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
REM Random Characters | |
10 FOR I = 15360 TO 16383 | |
20 POKE I, INT(255 * RND(0)) | |
30 NEXT I | |
40 END | |
REM Random Sounds | |
10 FOR I = 1 TO 10 | |
20 SOUND INT(255 * RND(0)), 5 | |
30 IF INKEY$ <> "" THEN END |
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 { Interaction, InteractionType } from "@/DiscordTypes"; | |
import EventContext from "@/EventContext"; | |
import nacl from "tweetnacl"; | |
function strToUint8Array(value: string, format?: string): Uint8Array { | |
if (!value) { | |
return new Uint8Array(); | |
} | |
if (typeof value === "string") { |
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
new AudioProfile(nameChatSound) | |
{ | |
fileName = "./nameSound.wav"; | |
description = AudioGui; | |
preload = true; | |
}; | |
/// Returns whether or not a tab-delimited %list contains a given %item. | |
/// %list: The list of items to check against. | |
/// %item: The item to check for. |
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
using Raylib_cs; | |
using System.Numerics; | |
namespace LoranVisual; | |
public class Program { | |
static float C = 299792.458f; | |
static float MicrosecondsToSeconds(float microseconds) { | |
return microseconds / 1_000_000f; |
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
public class SimplexNoise { | |
private static readonly int[] perm = new int[512]; | |
private static readonly int[][] grad2 = new int[][] { | |
new int[] {1, 1}, new int[] {-1, 1}, new int[] { 1, -1 }, new int[] { -1, -1 }, | |
new int[] { 1, 0 }, new int[] { -1, 0 }, new int[] { 1, 0 }, new int[] { -1, 0 }, | |
}; | |
private static readonly float F2 = 0.5f * (float)Math.Sqrt(3.0) - 0.5f; | |
private static readonly float G2 = (3.0f - (float)Math.Sqrt(3.0)) / 6.0f; |
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
using Raylib_CsLo; | |
using System.Numerics; | |
public static class Gfx { | |
public static void Line(Vector2 start, Vector2 end, Color color, float lineSize = 1) { | |
RlGl.rlSetTexture(RlGl.rlGetTextureIdDefault()); | |
RlGl.rlSetLineWidth(lineSize); | |
RlGl.rlColor4ub(color.r, color.g, color.b, color.a); | |
RlGl.rlBegin(RlGl.RL_LINES); |
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
using Raylib_CsLo; | |
using System.Numerics; | |
public class Dot { | |
static Random rnd = new Random(); | |
Vector2 position; | |
public Dot(Vector2 position) { | |
this.position = position; |
NewerOlder