Core Image Filters on iOS 10
CIAccordionFoldTransition
CIAdditionCompositing
CIAffineClamp
CIAffineTile
CIAffineTransform
CIAreaAverage
CIAreaHistogram
#!/bin/sh | |
cat /dev/urandom | envcd 'a-f0-9' | head -c 16 |
class Router { | |
constructor(){ | |
const path = (window.location.href.split("/#!")[1]) | |
?(window.location.href.split("/#!")[1]) | |
:(window.location.href.split(/src\/html/)[1]) | |
// callbacks | |
this.actions = [] | |
this.state = { | |
baseURL: window.location.protocol+"://"+window.location.host, | |
path: path, |
package main | |
import ( | |
"net" | |
) | |
func main(){ | |
message := []byte("Hello world") | |
localAddress, _ := net.ResolveUDPAddr("udp", "127.0.0.1:0") | |
remoteAddress, _ := net.ResolveUDPAddr("udp", "127.0.0.1:1936") |
#!/bin/sh | |
ffmpeg -y -i video.mp4 meme.gif -f gif |
CIAccordionFoldTransition
CIAdditionCompositing
CIAffineClamp
CIAffineTile
CIAffineTransform
CIAreaAverage
CIAreaHistogram
//: Playground - noun: a place where people can play | |
import Cocoa | |
import Darwin | |
func htons(value: CUnsignedShort) -> CUnsignedShort { | |
return (value << 8) + (value >> 8) | |
} | |
let INADDR_ANY = in_addr(s_addr: 0) |
# | |
# Print in one line dynamically | |
# | |
from sys import stdout | |
from time import sleep | |
def progress(): | |
for i in range(0,100): | |
stdout.write('\rLoading {}%'.format(i+1)) | |
stdout.flush() |
import os | |
import socket | |
videos = [] | |
client = socket.socket() | |
client.connect((socket.gethostbyname('localhost'), 3000)) | |
# Append the video files paths into array | |
def load_videos(): | |
base_dir = os.path.dirname(os.path.realpath(__file__)) |
package main | |
import ( | |
"log" | |
"time" | |
"sync" | |
) | |
// Loop 10 times, print every 1 second | |
func One(){ |
# | |
# web/models/user.ex | |
# | |
defmodule Plans.User do | |
use Plans.Web, :model | |
@primary_key {:id, :binary_id, autogenerate: true} | |
schema "users" do | |
field :username, :string | |
field :email, :string |