Magic words:
psql -U postgres
If run with -E
flag, it will describe the underlaying queries of the \
commands (cool for learning!).
Most \d
commands support additional param of __schema__.name__
and accept wildcards like *.*
var x1=1, y1=1; |
function createXHR(method, url) { | |
var xhr = new XMLHttpRequest(); | |
if (xhr) { | |
// XHR for Chrome/Firefox/Opera/Safari. | |
xhr.open(method, url, true); | |
} else { | |
// CORS not supported. | |
xhr = null; | |
} | |
return xhr; |
package main | |
import ( | |
"golang.org/x/tour/tree" | |
"fmt" | |
) | |
// Walk walks the tree t sending all values | |
// from the tree to the channel ch. | |
func Walk(t *tree.Tree, ch chan int) { |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Spliterator; | |
import java.util.function.Consumer; | |
import java.util.stream.IntStream; | |
import java.util.stream.Stream; |
@Test | |
public void testJavaGeneric() { | |
// have to use a empty `{ }`, so that the `getClass().getGenericSuperclass()` will return a `ParameterizedType` instance. | |
List<Integer> list = new LinkedList<Integer>() { | |
}; | |
// superclass contains the unerased info. | |
Type supers = list.getClass().getGenericSuperclass(); | |
assertTrue(supers instanceof ParameterizedType); | |
ParameterizedType paramType = (ParameterizedType) supers; |
package leo.me.graphql; | |
/** | |
* Created by leo on 4/26/17. | |
*/ | |
import static graphql.Scalars.GraphQLString; | |
import static graphql.schema.GraphQLFieldDefinition.newFieldDefinition; | |
import static graphql.schema.GraphQLList.list; | |
import static graphql.schema.GraphQLObjectType.newObject; |
import java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.util.Calendar; | |
import java.util.Date; | |
import java.util.TimeZone; | |
/** | |
* This is a test indicating the timezone issue for a datebase which is in a timezone which observes | |
* DST, | |
* for example, America/Los_Angeles. |
package leo.me; | |
import okhttp3.Call; | |
import okhttp3.Callback; | |
import okhttp3.OkHttpClient; | |
import okhttp3.Protocol; | |
import okhttp3.Request; | |
import okhttp3.Response; | |
import java.io.IOException; |
;/*! showdown v 2.0.0-alpha1 - 19-04-2018 */ | |
var showdownFn = function(){ | |
/** | |
* Created by Tivie on 13-07-2015. | |
*/ | |
function getDefaultOpts (simple) { | |
'use strict'; | |
var defaultOptions = { |