If you haven't installed Homebrew get it from https://brew.sh/
git clone [email protected]:grame-cncm/faust.git
cd faust
If you haven't installed Homebrew get it from https://brew.sh/
git clone [email protected]:grame-cncm/faust.git
cd faust
Modern Cocoa development involves a lot of asynchronous programming using closures and completion handlers, but these APIs are hard to use. This gets particularly problematic when many asynchronous operations are used, error handling is required, or control flow between asynchronous calls gets complicated. This proposal describes a language extension to make this a lot more natural and less error prone.
This paper introduces a first class Coroutine model to Swift. Functions can opt into to being async, allowing the programmer to compose complex logic involving asynchronous operations, leaving the compiler in charge of producing the necessary closures and state machines to implement that logic.
CREATE SEQUENCE country_seq; | |
CREATE TABLE IF NOT EXISTS country ( | |
id int NOT NULL DEFAULT NEXTVAL ('country_seq'), | |
iso char(2) NOT NULL, | |
name varchar(80) NOT NULL, | |
nicename varchar(80) NOT NULL, | |
iso3 char(3) DEFAULT NULL, | |
numcode smallint DEFAULT NULL, | |
phonecode int NOT NULL, |
// | |
// Obfuscator.swift | |
// | |
// Created by Dejan Atanasov on 2017-05-31. | |
// | |
import Foundation | |
class Obfuscator: AnyObject { | |
#!/bin/bash | |
USER=${1:-sebble} | |
STARS=$(curl -sI https://api.github.com/users/$USER/starred?per_page=1|egrep '^Link'|egrep -o 'page=[0-9]+'|tail -1|cut -c6-) | |
PAGES=$((658/100+1)) | |
echo You have $STARS starred repositories. | |
echo |
#!/usr/bin/env bash | |
VERSION=4.0.1 | |
SCRIPT=`basename "$0"` | |
APPNAME="My App" | |
APPICONS="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericApplicationIcon.icns" | |
OSX_VERSION=`sw_vers -productVersion` | |
PWD=`pwd` | |
function usage { |
<!doctype html> <title> *Leaflet.JS audio-player example </title> | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" /> | |
<style> | |
body { font: .92em sans-serif; color: #333; background: #fefefe; max-width: 80em; margin: 0 auto; } | |
h1, h2 { font-weight: normal; margin: 0.6em 0; } | |
.leaflet-popup-content { margin: 9px; } | |
.leaflet-popup-content-wrapper { border-radius: 6px; } |
┌─────────────────────────────────────────────────────────────────────────────┐ | |
│ __ │ | |
│.-----.---.-.-----.--.--.-----.-----| |_ .-----.-----.----.--.--.-----.----.│ | |
│| -__| _ |__ --| | | -__|__ --| _||__ --| -__| _| | | -__| _|│ | |
│|_____|___._|_____|___ |_____|_____|____||_____|_____|__| \___/|_____|__| │ | |
│ |_____| │ | |
│ │ | |
└─────────────────────────────────────────────────────────────────────────────┘ | |
# python -m SimpleHTTPServer 8000 python 2.* |
🌁📉🌁🌁⬜⬜⬜🌁⬜🌁📃⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜📃🏭📃🌁📃📃🌁📃📃🏂🏂🎂📃🌁🌁🏭📃🏢🏭🎂📃🏭📃🏢📃⛲⛲🕕⬜📩🔳🍧💈📤🎲📤📉🌁🌁📃🌁⬜📈⬜⬜⬜⬜🌁⬜⬜⬜⬜⬜🌁
⬜🌁🌁⬜⬜⬜🌁🌁🌁📃📃⬜⬜⬜⬜⬜⬜🌁⬜⬜⬜⬜⬜⬜⬜⬜🌁🌁🌁🌁📃📃🌁📃💬🏢💬🌁🌁🌁🌁📃🏭💬💬🏭📃🌁🏭💬🏂⛲⛲📂⬜🌄🌄⚾📱💈📱🕖🏭📈📃🌁⬜⬜📈⬜⬜⬜🌁📝📝⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜🌁🌁🌁📃🌁🌁🌁🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁📃📃🌁📃🌁📃💬📂🏢🌁📃🏢📃📃💬🏭💬🏢🏢🏢🏢🏂⛲📖⛲🔣📉💬💌🌄📤💈👟🎲🎂🌁🌁🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜🌁🌁📃📃📃📃📃⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁🏭📃📃🌁📃💬🎂🔳📂🏂📃📉📉🌁⬜⬜🗼🗼🗼🗼📈📃📃📃📃🌁🎂🕓⚾📱💈💈🍜📈⬜🌁📃⬜🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜🌁📃📃📃📃🏭📃⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁🌁🌁🌁🌁📃🏂🏢📃🕕🍚🌁⬜🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁🌁🎂🔳📧👀🔩🍧🐹🌁🌁🌁⬜⬜📈🌁🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜🌁💬🏂📃📃🌁📃📃⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁🌁📃🏭🏭🍚🏂🏢🏂🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜📝🕕🎲🔏🔘🐚📩🌁⬜⬜🌁🌁🌁🗼🌁🌁🌁⬜⬜⬜🌁🌁🌁🌁⬜
⬜⬜⬜📜🌁📃🏂🏢📃🏢🏢🏢🏭🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁🌁🌁🌁📈📑🎡🏢🏢📃🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜📃📠😰💌🎹📤⛅🎂⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜📃📃
⬜⬜⬜🌁🏭🏭📃🏢🏢🏢🏢🏢📃⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁🌁🌁⬜⬜🌁🎡⬜🌁🏢🏢🌁🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁💬📜💑🌄📤🏦🔤🏭⬜⬜⬜⬜⬜⬜🌁🌁📈🌁🌁📃🌁🌁🌁🏭💬
⬜🏭📃📃📃📃📃📂🏂🌁💬🏢📃⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁🌁🌁⬜⬜🌁🏭🌁🗼💬🔳📃📃📉🗼🌁🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁🎂📝📜🐹🔘👀🎹💬📝🌁📈🌁🌁🌁📈📃📃📈📃📈📃📃🏭🏭🏂
🌁🌁📃📃📃📃🏢🏂📃📃🌁📃📃🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜📈📃🏂📈💬📃📉🏭📈📃🏭📈📈⬜⬜🌁📃⬜⬜⬜⬜⬜⬜📈🎂🏂📄🎂💌🔘🐚😱🎂📃📈📈🏭📈📈📈📃📈📈📈📈📃🏭📃📃💬
#!/bin/sh | |
defaults read com.apple.finder CreateDesktop > /dev/null 2>&1 | |
enabled=$? | |
if [ "$1" = "off" ]; then | |
if [ $enabled -eq 1 ]; then | |
defaults write com.apple.finder CreateDesktop false | |
osascript -e 'tell application "Finder" to quit' | |
open -a Finder |