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
| /* | |
| * Copyright 2014 Julian Shen | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| <TextClock | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:id="@+id/textClock" | |
| android:textSize="60sp" | |
| android:textColor="#b3b5b5" | |
| android:format24Hour="k"/> | |
| <blink android:layout_width="wrap_content" | |
| android:layout_height="wrap_content"> |
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
| <TextClock | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:id="@+id/textClock" | |
| android:textSize="60sp" | |
| android:textColor="#b3b5b5" | |
| android:format24Hour="k"/> | |
| <blink android:layout_width="wrap_content" | |
| android:layout_height="wrap_content"> |
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
| <blink android:layout_width="wrap_content" | |
| android:layout_height="wrap_content"> | |
| <TextClock | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:id="@+id/textClock" | |
| android:textSize="60sp" | |
| android:textColor="#b3b5b5"/> | |
| </blink> |
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
| task copyNativeLibs(type: Copy) { | |
| from fileTree(dir: 'jni', include: '**/*.so' ) into 'build/native-libs' | |
| } | |
| tasks.withType(Compile) { compileTask -> compileTask.dependsOn copyNativeLibs } | |
| clean.dependsOn 'cleanCopyNativeLibs' | |
| tasks.withType(com.android.build.gradle.tasks.PackageApplication) { pkgTask -> | |
| pkgTask.jniDir file('build/native-libs') | |
| } |
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 main | |
| import ( | |
| "encoding/json" | |
| "errors" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "net/url" | |
| "os" |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> | |
| <plist version="0.9"> | |
| <dict> | |
| <key>CFBundleIconFile</key> | |
| <string>@ICON@</string> | |
| <key>CFBundlePackageType</key> | |
| <string>APPL</string> | |
| <key>CFBundleGetInfoString</key> | |
| <string>Created by Qt/QMake</string> |
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 main | |
| import ( | |
| "fmt" | |
| uuid "github.com/julianshen/GoUUID" | |
| ) | |
| func main() { | |
| _uuid, err := uuid.RandomUUID() |
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
| type Handler interface { | |
| ServeHTTP(ResponseWriter, *Request) | |
| } | |
| type HandlerFunc func(ResponseWriter, *Request) | |
| // ServeHTTP calls f(w, r). | |
| func (f HandlerFunc) ServeHTTP(w ResponseWriter, r *Request) { | |
| f(w, r) | |
| } |
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 main | |
| import "fmt" | |
| func deferdemo(n int) { | |
| fmt.Println(n) | |
| defer fmt.Println("a") | |
| fmt.Println("b") |