View javafmt
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
 
unset tmpfile
trap "[ -f $tmpfile ] && rm -f $tmpfile" 1 2 3 15
tmpfile=$(mktemp 2>/dev/null||mktemp -t tmp)
 
if [ "$#" -eq 0 ]; then
cat > $tmpfile
vim -c 'silent! normal! ggVG=ZZ' $tmpfile 2> /dev/null
else
View type1.go
1 2 3 4 5 6 7 8 9 10
package main
 
import (
"unsafe"
)
 
type _ unsafe.Pointer
 
func main() {
}
View doctypo.go
1 2 3 4 5 6 7 8 9 10
package main
 
import (
"bytes"
"fmt"
"go/ast"
"go/parser"
"go/token"
"log"
"os"
View nurupo.go
1 2 3 4 5 6 7 8 9 10
package nurupo
 
import (
"errors"
"strings"
)
 
func Nurupo(message string) error {
if strings.Contains(message, "ぬるぽ") {
return errors.New("ガッ")
View gist:47d39a30a63786d0d3dc
1 2 3 4 5 6 7 8 9 10
diff -r 84171683fd66 src/Makefile
--- a/src/Makefile Tue Jan 27 22:52:15 2015 +0100
+++ b/src/Makefile Fri Jan 30 11:20:05 2015 +0900
@@ -1907,6 +1907,7 @@
test_signs \
test_utf8 \
test_writefile \
+ test_erasebackword \
test2 test3 test4 test5 test6 test7 test8 test9 \
test10 test11 test12 test13 test14 test15 test16 test17 test18 test19 \
View embulk.bat
1 2 3 4 5 6 7 8
@echo off
 
setlocal enabledelayedexpansion
 
set RUBYOPT=
set EMBULK_HOME=%~dp0..
set EMBULK_JAR=%EMBULK_HOME%\embulk.jar
java -jar %EMBULK_JAR% %*
View gist:8983b4c89927e7707d7a
1 2 3 4 5 6 7 8 9 10
test.strm: Syntax OK
---------
VALUE(ARRAY):
IF:
VALUE(NUMBER): 1.000000
THEN:
VALUE(ARRAY):
VALUE(BOOL): true
ELSE:
VALUE(ARRAY):
View gist:95fa5d865ff294d8fc0a
1 2 3 4 5 6 7 8 9 10
diff --git a/Makefile b/Makefile
index cfc9bd3..48670db 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
YACC = bison -y
LEX = flex
TARGET = bin/streem
+CFLAGS = -Wall
+LIBS =
View gist:20ca59b54c7b95e97a6c
1 2 3 4 5 6 7 8 9 10
diff --git a/Makefile b/Makefile
index cfc9bd3..48670db 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
YACC = bison -y
LEX = flex
TARGET = bin/streem
+CFLAGS = -Wall
+LIBS =
Something went wrong with that request. Please try again.