Skip to content

Instantly share code, notes, and snippets.

View idolize's full-sized avatar

David Idol idolize

View GitHub Profile
@tranquan
tranquan / xcode-keybindings-as-vscode.md
Last active June 24, 2024 23:02
Xcode KeyBindings as VSCode
@desbo
desbo / quake-3-arena-macos-quickstart-guide.md
Last active August 22, 2022 23:14
Quake 3 Arena macOS quick start guide
  1. Install Q3 fork ioquake3 along with original game patch files (baseq3/pak{1-8}.pk3, missionpack/pak{1-3}.pk3)

    brew cask reinstall ioquake3
    
  2. Build ioquake3 master branch

    git clone https://github.com/ioquake/ioq3
    
@KenjiOhtsuka
KenjiOhtsuka / sample.kt
Created October 30, 2018 18:40
Kotlin prepared statement (SQL)
package com.improve_future.sample
import java.io.Closeable
import java.sql.DriverManager
import java.sql.Statement
import java.text.SimpleDateFormat
class Connection(private val coreConnection: java.sql.Connection) :
java.sql.Connection by coreConnection, Closeable {
@gagarine
gagarine / fish_install.md
Last active June 5, 2024 20:25
Install fish shell on macOS Mojave with brew

Installing Fish shell on MacOS (Intel and M1) using brew

Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.

Note that you need the https://brew.sh/ package manager installed on your machine.

Install Fish

brew install fish

@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active June 25, 2024 07:29
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@simenbrekken
simenbrekken / CategoryActions.js
Last active May 9, 2020 16:25
Category Actions
'use strict';
var createAsyncActions = require('./createAsyncActions')
var CategoryAPI = require('../api/CategoryAPI')
var CategoryActions = createAsyncActions({
create: function(category) {
CategoryAPI
.create(category)
@spoike
spoike / webapi_example.js
Last active May 12, 2017 13:37
Simple WebAPI example
var PostsApi = require('webapi/posts'),
// assuming the api object from the jsbin snippet
Reflux = require('reflux');
var PostActions = createActions(["load", "loadError"]);
// load action is invoked either from:
// * top most component's componentDidMount
// function in your application, or
// * window.onLoad
// I prefer the first strategy because that'll
var EmbedlyComponent = React.createClass({
componentWillMount: function() {
// get 'http://api.embed.ly/1/oembed?url=' + this.props.url;
SuperAgent.get('http://api.embed.ly/1/oembed?url=' + this.props.url,
function(res) {
var data = res.body;
if (data) this.setState(data);
}.bind(this)
);
},
@nicosuave
nicosuave / rules.rb
Created January 31, 2013 22:43
Maid rules
Maid.rules do
## Functions ##
# Dupe detection thanks to bobthecow
def files(paths)
dir(paths).select { |f| File.file?(f) }
end
def size_of(path)
File.size(path)
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active June 13, 2024 02:39
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx