Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / JavaScriptGenerator.java
Created January 22, 2017 04:52
JavaScript generator for nub.
package com.github.kmizu.nub;
import java.util.*;
public class JavaScriptGenerator implements AstNode.ExpressionVisitor<Object> {
private Set<String> functions = new HashSet<>();
private StringBuilder stringBuilder = new StringBuilder();
@kevinelliott
kevinelliott / 1-macOS-10.12-sierra-setup.md
Last active February 5, 2024 07:22
macOS 10.12 Sierra Setup

macOS 10.12 Sierra Setup

Custom recipe to get macOS 10.12 Sierra running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.11 El Capitan setup recipe and 10.10 Yosemite setup recipe. I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your o

@yutailang0119
yutailang0119 / DispatchQueueSwift3.swift
Last active January 5, 2017 10:45
Swift3.0で `dispatch_async` が使えなくなると聞いて
// Swift2.x
dispatch_async(dispatch_get_main_queue()) { [weak self]() in
if let weakSelf = self {
weakSelf.tableView.reloadData()
}
}
//Swift3.0
DispatchQueue.main.async { [weak self] in
if weakSelf = self {

#Phoenix 1.1.x to 1.2.0 Upgrade Instructions

Project Generator

To generate new projects as 1.2.0, install the new mix archive:

mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez

Deps

@mgwidmann
mgwidmann / hotcode.ex
Last active September 25, 2022 19:57
Hot code swapping
# To show hot code uploading, we first need to build a simple phoenix project so we can see it happen in real time.
# Start by making a new phoenix project
$ mix phoenix.new hotcode
# Go into the directory
$ cd hotcode
# Add exrm dependency to mix.exs file
{:exrm, "~> 1.0.3"}
@voluntas
voluntas / webrtc_sfu_dev.rst
Last active March 28, 2024 12:31
WebRTC SFU コトハジメ

WebRTC SFU コトハジメ

日時

2023-12-03

voluntas

バージョン

2023.1

url

https://voluntas.github.io

この記事が良いと思ったらこの記事に Star をお願いします

@groovelab
groovelab / 0 PerfectLib.md
Last active April 21, 2016 11:18
UbuntuにSwiftとPerfectLibをインストールする

AWS

EC2インスタンスを作成

AMI

ubuntu-wily-daily-amd64-server-20151209 (Ubuntu 15.10)

セキュリティグループを設定

インバウンド

SSH, HTTP を許可

サブドメインを設定

@voluntas
voluntas / webrtc_sfu_develop.rst
Last active June 17, 2021 10:33 — forked from alanmshelly/webrtc_sfu_develop.rst
WebRTC SFU をフルスクラッチで作ってみた

WebRTC SFU をフルスクラッチで作ってみた

I wrote a WebRTC SFU from scratch

Author

@voluntas

Translator

@alanmshelly

Version

0.0.0

url

https://voluntas.github.io/

@corosukeK
corosukeK / gist:f5fc72d472d930991067
Created September 10, 2015 07:23
Syncで使われているライブラリ(ライセンス表記から抽出した)
・Cocoapods
AF+Image+Helper
ARChromeActivity
Aspects
Bolts
CocoaSecurity
Colours
Crashlytics
DACircularProgress