Skip to content

Instantly share code, notes, and snippets.

@neocoin
neocoin / zinit.rb
Created April 6, 2020 03:14
brew Formula for zinit
class Zinit < Formula
desc "Ultra-flexible Zsh plugin manager with clean fpath, reports, completion management, Turbo, annexes, services, packages. https://zdharma.org/zinit/wiki/"
homepage "https://github.com/zdharma/zinit"
url "https://github.com/zdharma/zinit.git"
version 'master'
def install
package = Pathname('zinit')
FileUtils.mkdir_p package
Dir['{*,.*}'].reject{|i| [package.to_s, '.', '..'].any?{|j| j == i}}.each{|i| FileUtils.mv i, package}
@neocoin
neocoin / main.cpp
Created March 24, 2012 18:46
C++ function pointer example
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
class Person
{
string name;
public: