This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoload -U compinit colors vcs_info | |
colors | |
compinit | |
REPORTTIME=3 | |
HISTFILE=~/.zhistory | |
HISTSIZE=5000 | |
SAVEHIST=5000 | |
setopt INC_APPEND_HISTORY | |
setopt EXTENDED_HISTORY |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package trikita.foo; | |
import android.content.Context; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.widget.LinearLayout; | |
import trikita.anvil.RenderableView; | |
import static trikita.anvil.DSL.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// This is just a collection of syscalls that are used by libsctp linux implementation. | |
// Although it supports message-oriented workflow, it can't be wrapped into a net.PacketConn. | |
// | |
package main | |
import ( | |
"log" | |
"syscall" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// A simple echo server for SCTP sockets, it creates a socket with a syscall then wraps it into a net.Listener interface | |
// to make goroutine-safe (otherwise reading or writing would block the whole host thread). | |
// All it does is echoing back all the received data from the client. | |
// | |
package main | |
import ( | |
"fmt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// A simple SCTP echo client to demonstrate wrapping low-level socket file descriptor into a net.Conn. | |
// Should work fine on linux, darwin, freebsd, dragonfly and solaris (where syscalls are available for SCTP sockets). | |
// | |
package main | |
import ( | |
"errors" | |
"fmt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gridLayout() | |
space() | |
foregroundLinearLayout() | |
navigationMenuItemView() | |
navigationMenuView() | |
scrimInsetsFrameLayout() | |
appBarLayout() | |
collapsingToolbarLayout() | |
coordinatorLayout() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
BGCOLOR='#550000' | |
TEXTCOLOR='#eeeeee' | |
TEXTFONT='Ubuntu-Light' | |
TEXTSIZE=72 | |
TEXT="\nHello this is a very long text\nwrapped in many lines" | |
# Put screenshot into a frame, change +86+242 if you change a frame PNG | |
composite -geometry +86+242 $1 frame.png $2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var on = false; | |
setInterval(function() { | |
on = !on; | |
LED1.write(on); | |
LED2.write(!on); | |
}, 500); | |
console.log('Hello, world!'); | |
E.setUSBHID({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.anvil.empty; | |
import android.app.Activity; | |
import android.hardware.Camera; | |
import android.os.Bundle; | |
import android.view.SurfaceHolder; | |
import android.view.SurfaceView; | |
import android.view.View; | |
import android.widget.FrameLayout; |