start new:
tmux
start new with session name:
tmux new -s myname
| uniform float speed; | |
| uniform float stepsize; | |
| uniform float shift; | |
| float3 rgb2hsv(float3 c) | |
| { | |
| float4 K = float4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0); | |
| float4 p = lerp(float4(c.bg, K.wz), float4(c.gb, K.xy), step(c.b, c.g)); | |
| float4 q = lerp(float4(p.xyw, c.r), float4(c.r, p.yzx), step(p.x, c.r)); |
| # coding:utf-8 | |
| from elasticsearch import Elasticsearch | |
| import json | |
| # Define config | |
| host = "127.0.0.1" | |
| port = 9200 | |
| timeout = 1000 | |
| index = "index" |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Chat</title> | |
| <link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300' rel='stylesheet' type='text/css'> | |
| <link href="style.css" rel="stylesheet" type="text/css"> | |
| <script src="https://d2g2wobxbkulb1.cloudfront.net/0.0.19/tmi.js"></script> <!--For developement--> | |
| <!--<script src="https://d2g2wobxbkulb1.cloudfront.net/0.0.19/tmi.min.js"></script>--> <!--For "production"--> | |
| </head> |
| -- use it as service of automator | |
| on run {input, parameters} | |
| do shell script "date +%Y-%m-%d\\ %H.%M.%S" | |
| set the clipboard to input & " - " & result as text | |
| tell application "System Events" | |
| the path to the frontmost application | |
| the name of the result |