This file contains 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"?> | |
<RelativeLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context="org.anyspirit.nsetting.MainActivity"> | |
<android.support.design.widget.FloatingActionButton |
This file contains 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 xxx.thymeleaf | |
import org.thymeleaf.processor.IProcessor | |
import org.thymeleaf.spring4.dialect.SpringStandardDialect | |
class AngularJSDialect : SpringStandardDialect() { | |
companion object { | |
private val attributes = arrayOf( | |
"ng-class", "ng-model", "ng-show", |
This file contains 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
https://github.com/nosix/thymeleaf-snippet-ja に移動 |
This file contains 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/bash | |
CMD=`basename $0` | |
usage() { | |
echo "Usage: $CMD [-r script] [-d dst] [-s src]" 1>&2 | |
} | |
COMMAND= | |
DST= |
This file contains 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 xxx | |
import android.content.Context | |
import xxx.Database | |
import xxx.SampleDB | |
class Client(context: Context) { | |
private val db = Database(context, SampleDB()) |
This file contains 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
external interface MethodMap | |
inline operator fun MethodMap.get(propertyName: String): Function<Any>? = this.asDynamic()[propertyName] | |
inline operator fun MethodMap.set(propertyName: String, value: Function<Any>?) { | |
this.asDynamic()[propertyName] = value | |
} |
This file contains 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
function sample$lambda() { | |
return 'Bar'; | |
} | |
function sample() { | |
var v1 = 'Foo'; | |
var v2 = sample$lambda; | |
} |
This file contains 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
class MainActivity : AppCompatActivity(), SeekDialogFragment.SeekDialogListener { | |
companion object { | |
private val TAG = MainActivity::class.qualifiedName; | |
} | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) |
This file contains 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
@RunWith(SpringRunner::class) | |
@SpringBootTest | |
@AutoConfigureWebTestClient | |
class ExampleTests { | |
@Autowired | |
private lateinit var client: WebTestClient | |
@Test | |
fun test_of_get() { | |
client.get().uri("/api/todo") |
This file contains 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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
package="xxx"> | |
<application | |
android:name=".MyApplication" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name"> | |
... |