Skip to content

Instantly share code, notes, and snippets.

View corehello's full-sized avatar
🏠
Working from home

corehello corehello

🏠
Working from home
View GitHub Profile
@dims
dims / README.md
Last active October 27, 2024 10:48
Kubernetes Resources
@ethanhuang13
ethanhuang13 / VirtualKeyboard.swift
Last active February 7, 2024 05:58
MacBook Air M1 Zhuyin Keyboard written with SwiftUI ~=300 LOC, < 4hrs
//
// VirtualKeyboard.swift
// MacBook Air M1 Zhuyin Keyboard
// Written with SwiftUI ~=300 LOC, < 4hrs
// Created by Ethan Huang on 2021/1/13.
// Twitter: @ethanhuang13
import SwiftUI
struct VirtualKeyboard: View {
@jonhoo
jonhoo / cell-tests.rs
Last active November 14, 2024 08:42
cell-refcell-rc
// these aren't _quite_ functional tests,
// and should all be compile_fail,
// but may be illustrative
#[test]
fn concurrent_set() {
use std::sync::Arc;
let x = Arc::new(Cell::new(42));
let x1 = Arc::clone(&x);
std::thread::spawn(move || {
@corehello
corehello / snake_array.c
Created February 7, 2017 05:44
snake array
#include <stdio.h>
#include <stdlib.h>
int main (int ac, char* av[])
{
int number = atoi(av[1]);
//number = 5;
int i=0,j=0;
int direction=0;
/*