Skip to content

Instantly share code, notes, and snippets.

View Coder-256's full-sized avatar
😀

Jacob Greenfield Coder-256

😀
View GitHub Profile
@Coder-256
Coder-256 / build-grub-osx.sh
Last active November 20, 2023 21:46 — forked from emkay/build-grub-osx.sh
Build Grub on OSX
#!/bin/sh
set -e
BINUTILS_VERSION=2.41
GCC_VERSION=13.2.0
GRUB_VERSION=2.06
# First we are going to make sure that you understand this is sort of experimental and we will be compiling stuff.
# by default CONTINUE will be false
@Coder-256
Coder-256 / Extension output 2020-06-15.txt
Last active June 15, 2020 16:35
rust-analyzer crashes
error: expected one of `.`, `?`, `{`, or an operator, found keyword `let`
--> <stdin>:211:5
|
208 | for i in 0..(signal.len() / (4 * elem))
| - expected one of `.`, `?`, `{`, or an operator
...
211 | let add_range = (elem - 1)..(2 * elem - 1);
| ^^^ unexpected token
thread '<unnamed>' panicked at 'index out of bounds: the len is 209 but the index is 222', crates/ra_ide_db/src/line_index.rs:102:9
Process: Electron [18748]
Path: /Applications/Visual Studio Code.app/Contents/MacOS/Electron
Identifier: com.microsoft.VSCode
Version: 1.33.1 (1.33.1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Electron [18748]
User ID: 501
Date/Time: 2019-05-11 15:48:49.007 -0400
diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json
index 151a8a5..28919b4 100644
--- a/npm-shrinkwrap.json
+++ b/npm-shrinkwrap.json
@@ -1,6750 +1,10281 @@
{
"name": "etcher",
"version": "1.3.0",
+ "lockfileVersion": 1,
+ "requires": true,
/*:
Optional Chaining: Arguments
--------
Here we have a value, which may or may not be nil:
*/
var str: String? = "Mystery Value"
//: We can easily call methods of this potentially nil object using optional chaining:
str?.append(Character("✨"))
//: But what about when we want to pass it to a function?
func giveMeAString(_ string: String) {
@Coder-256
Coder-256 / VerticalSlider.swift
Created June 12, 2017 20:26
Rotatable, vertical `UISlider` for iOS. Simply set the class of any `UISlider` to `VerticalSlider` to use, and configure as necessary using Interface Builder (or code).
//
// VerticalSlider.swift
//
// Created by Coder-256 on 8/23/16.
// Copyright © 2016 Coder-256. All rights reserved.
//
import UIKit
/// A view containing a vertically rotated UISlider.

Keybase proof

I hereby claim:

  • I am coder-256 on github.
  • I am coder256 (https://keybase.io/coder256) on keybase.
  • I have a public key ASD1u09IwpgRag0We4nMualGU_fQnR4OlBSZRMiHklkkHQo

To claim this, I am signing this object:

@Coder-256
Coder-256 / Headphone Buttons Volume Control.cmate
Created April 3, 2016 14:29
This will allow headphone buttons to control the computer's volume (it worked for me, at least).
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DeviceType</key>
<array>
<dict>
<key>ScratchpadTitle</key>
<string>Apple Mikey HID Driver (Consumer Control)</string>
<key>ScratchpadIdentifier</key>