View SentryLog.kt
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
object SentryLog { | |
// ~ Properties ------------------------------------------------------------------------------- | |
var netInfo: String? = "" | |
var appState: AppState? = null | |
private val gson = createAppStateGson() | |
// ~ Methods ---------------------------------------------------------------------------------- |
View SWTLoader.java
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
import static com.google.common.base.Preconditions.checkState; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.Map.Entry; | |
public final class SWTLoader extends Capsule { | |
// ~ Constructors ---------------------------------------------------------------------------------------------- |
View nginx.conf
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
# target server | |
upstream postgrest { | |
server localhost:4000; | |
keepalive 64; | |
} | |
# proxy | |
server { | |
listen 3000; | |
View UniqueListTest.java
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
@Test | |
public void bugInGrouper() { | |
final TransactionList<String> source = new TransactionList<String>(new BasicEventList<String>()); | |
final UniqueList<String> uniqueList = new UniqueList<String>(source, String.CASE_INSENSITIVE_ORDER); | |
source.add("A"); | |
source.add("A"); | |
source.add("B"); | |
source.beginEvent(); |
View ListEventCompressor.kt
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
import ca.odell.glazedlists.event.ListEvent | |
import java.util.* | |
data class ChangeRange(val firstIndex: Int, var count: Int, val type: ChangeType) { | |
// ~ Delegated -------------------------------------------------------------------------------- | |
val lastIndex: Int | |
get() = firstIndex + count - 1 |
View test.sql
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
## works | |
create schema core; | |
create table core.items ( | |
id serial primary key | |
); | |
create table core.other ( |
View jsx-import-undef.js
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
/** | |
* @fileoverview Disallow undeclared variables in JSX | |
* @author Yannick Croissant | |
*/ | |
'use strict'; | |
/** | |
* Checks if a node name match the JSX tag convention. | |
* @param {String} name - Name of the node to check. |
View GeoJsonMapLayer.js
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
export default class GeoJsonMapLayer extends React.Component { | |
render() { | |
return ( | |
<div> | |
</div> | |
); | |
} | |
componentWillUnmount() { | |
if (this.layer) { |
View SetMatcherEditor.java
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
import static com.google.common.base.Preconditions.checkNotNull; | |
import java.util.Set; | |
import java.util.function.Function; | |
import com.google.common.collect.ImmutableSet; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; |
View FinalizerTest.java
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 finalizertest; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import android.support.test.runner.AndroidJUnit4; |
NewerOlder