Skip to content

Instantly share code, notes, and snippets.

View charlesmartinreed's full-sized avatar

Charlie so and so charlesmartinreed

  • Looking for a good time, sailor?
  • Dallas, Texas
View GitHub Profile
@rylev
rylev / learn.md
Created March 5, 2019 10:50
How to Learn Rust

Learning Rust

The following is a list of resources for learning Rust as well as tips and tricks for learning the language faster.

Warning

Rust is not C or C++ so the way your accustomed to do things in those languages might not work in Rust. The best way to learn Rust is to embrace its best practices and see where that takes you.

The generally recommended path is to start by reading the books, and doing small coding exercises until the rules around borrow checking become intuitive. Once this happens, then you can expand to more real world projects. If you find yourself struggling hard with the borrow checker, seek help. It very well could be that you're trying to solve your problem in a way that goes against how Rust wants you to work.

@aabewhite
aabewhite / CVPixelBufferColor.swift
Last active November 18, 2023 03:47
Convert a CVPixelBuffer from an iOS device video camera from YpCbCr format to ARGB values.
//
// CVPixelBufferColor.swift
// ARPaint
//
// Created by Abe White on 9/13/18.
// Copyright © 2018 Hedonic Software. All rights reserved.
//
import Accelerate
import UIKit
@jeromecoupe
jeromecoupe / webstoemp-gulpfile.js
Last active February 19, 2025 22:44
Gulp 4 sample gulpfile.js. For a full explanation, have a look at https://www.webstoemp.com/blog/switching-to-gulp4/
"use strict";
// Load plugins
const autoprefixer = require("autoprefixer");
const browsersync = require("browser-sync").create();
const cp = require("child_process");
const cssnano = require("cssnano");
const del = require("del");
const eslint = require("gulp-eslint");
const gulp = require("gulp");
@nijicha
nijicha / install_nodejs_and_yarn_homebrew.md
Last active February 24, 2025 17:32
Install NVM, Node.js, Yarn via Homebrew
@DanDiplo
DanDiplo / JS-LINQ.js
Last active March 2, 2025 13:40
JavaScript equivalents of some common C# LINQ methods. To help me remember!
// JS array equivalents to C# LINQ methods - by Dan B.
// First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version):
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },