start new:
tmux
start new with session name:
tmux new -s myname
package main | |
import ( | |
"io" | |
"io/ioutil" | |
"github.com/moutend/go-wav" | |
) | |
func main() { |
// +build windows | |
package main | |
import ( | |
"fmt" | |
"path/filepath" | |
"syscall" | |
"unsafe" | |
) |
#!/usr/bin/env sh | |
echo "Building go library:" | |
go build -o libtest.so -buildmode=c-shared ./main.go || exit | |
echo "Building C executible:" | |
clang --verbose -DUSE_SHARED_LLVM=on -L/tmp/so -ltest -I/tmp/so main.c -o main -Wall || exit | |
echo "Done" |
#!/usr/bin/env bash | |
declare -i min=0 | |
declare -i max=10 | |
host=$(ip -4 addr show docker0 | grep -Po 'inet \K[\d.]+') | |
for (( c=min; c<max; c++ )) do | |
echo "Going to start worker # $c" | |
docker run\ |
<template> | |
<ul class="language-selector"> | |
<li | |
v-for="(language, idx) in $i18n.availableLocales" | |
:class="{selected: language === $i18n.locale}" | |
> | |
<a @click="changeLayout(language, $t(`languages.list[${idx}].bidi`))> | |
<Flag | |
:country="$t(`languages.list[${idx}].country-code`)" | |
:title="language" |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"reflect" | |
) | |
type To []string |
From - String | |
To - String/List of string | |
Message - String |
#!/usr/bin/env ruby | |
require 'ipaddr' | |
ARGV.each do |int| | |
puts "#{int} = #{IPAddr.new(int.to_i, Socket::AF_INET).to_s}" | |
end |