Skip to content

Instantly share code, notes, and snippets.

View musha68k's full-sized avatar

Oskar Maria Grande musha68k

View GitHub Profile
@deplinenoise
deplinenoise / build-gcc-toolchain.sh
Created June 5, 2016 19:15
Build m68k-unknown-elf toolchain into subdir of PWD on Mac, relies on brew for GCC dependencies
#! /usr/bin/env bash
echo Building GCC m68k toolchain...
mkdir -p sources
mkdir -p build
CORES=8
TARGET=m68k-unknown-elf
PREFIX=$PWD/m68k-unknown-elf
@graphitemaster
graphitemaster / T0.md
Last active May 6, 2024 10:18
Vulkan Tutorial

Tutorial 0

What is Vulkan

Vulkan is a low-overhead, cross-platform 3D graphics and compute API.

Vulkan targets

Vulkan targets high-performance realtime 3D graphics applications such as games and interactive media across multiple platforms providing higher performance and lower CPU usage.

@atsaki
atsaki / Vagrantfile
Last active December 4, 2015 02:29
Vagrant+Docker Machine Generic Driverを使ってDockerホスト・Swarmクラスタを構築する ref: http://qiita.com/atsaki/items/0b48daf4858c61cb29e0
Vagrant.configure(2) do |config|
# vagrant-triggersをProvisionerとして使用し、
# 作成した仮想マシンに対してdocker-machine createを実行
config.vm.provision "trigger" do |trigger|
trigger.fire do
# docker-machine statusのexitstatusが0の場合はdocker-machine create実行済み
`docker-machine status #{@machine.name}`
if $?.exitstatus != 0
# 使用するIPとポートを取得
# VirtualBoxの場合には一度仮想マシンにログインしプライベートネットワークのIPを取得
@capttaco
capttaco / Fetchable.swift
Last active May 3, 2019 17:28
A utility protocol for custom NSManagedObjects that makes querying contexts simpler and more convenient. Requires Swift 2.
import CoreData
protocol Fetchable
{
typealias FetchableType: NSManagedObject
static func entityName() -> String
static func objectsInContext(context: NSManagedObjectContext, predicate: NSPredicate?, sortedBy: String?, ascending: Bool) throws -> [FetchableType]
static func singleObjectInContext(context: NSManagedObjectContext, predicate: NSPredicate?, sortedBy: String?, ascending: Bool) throws -> FetchableType?
static func objectCountInContext(context: NSManagedObjectContext, predicate: NSPredicate?) -> Int
Example: https://denpa.moe/~syrup/himawari8.png
@jlongster
jlongster / bloop.js
Last active September 5, 2022 23:33
bloop
(function() {
// Do not use this library. This is just a fun example to prove a
// point.
var Bloop = window.Bloop = {};
var mountId = 0;
function newMountId() {
return mountId++;
}
@ssstonebraker
ssstonebraker / sed cheatsheet
Created August 2, 2013 14:06 — forked from un33k/sed cheatsheet
Sed Cheatsheet
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@vrybas
vrybas / how-do-i-pomodoro.md
Last active March 12, 2019 11:08
Vladimir Rybas - How do I Pomodoro

vrybas.github.io

How do I Pomodoro

I'm a big fan of Pomodoro time management technique, created by Francesco Cirillo in the 80's. In this post I'll describe what it is, how I use it (tools and their tweaks), and how it helps me to get through my day.

Interruptions

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style