Skip to content

Instantly share code, notes, and snippets.

View briandilley's full-sized avatar
:octocat:
Always Coding

Brian briandilley

:octocat:
Always Coding
View GitHub Profile
@briandilley
briandilley / gist:5530387
Created May 7, 2013 05:08
endgeNGram problem
mapping
=================
{
"analysis": {
"analyzer": {
"username_index": {
"tokenizer": "keyword",
subquery = query.subquery()
unnest_expr = expr.select(columns=[distinct(func.unnest(subquery.c.attribute_ids))], from_obj=subquery)
array_expr = expr.select(columns=[func.array(unnest_expr)])
generates:
SELECT array((SELECT DISTINCT unnest(anon_1.attribute_ids)
brian@brian-linux:~/projects/pressed-python$ git pull
remote: Counting objects: 1969, done.
remote: Compressing objects: 100% (1708/1708), done.
remote: Total 1742 (delta 1287), reused 0 (delta 0)
Receiving objects: 100% (1742/1742), 713.63 KiB | 622 KiB/s, done.
Resolving deltas: 100% (1287/1287), completed with 169 local objects.
From git+ssh://pressedgit/pressed-python
b78346c..a24c152 master -> origin/master
* [new branch] checkout-views -> origin/checkout-views
* [new branch] mobile -> origin/mobile
package com.cheerfulinc.flipagram.client.command;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.List;
package com.flipagram.lib.model;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
import com.flipagram.lib.util.Base62;
package com.flipagram.core.auth;
import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.flipagram.lib.joda.JodaUtil;
import com.flipagram.lib.model.AbstractModelObject;
import com.flipagram.lib.model.Fid;
import com.flipagram.lib.model.JsonBackedModelObject;
import com.flipagram.lib.util.StringUtil;
export class BaseRxComponent
implements OnDestroy {
private subscription: Subscription = new Subscription();
protected manage(teardown: TeardownLogic): Subscription {
return this.subscription.add(teardown);
}
pragma solidity ^0.4.24;
import "./EtherHiloInterfaces.sol";
import "./Ownable.sol";
import "oraclize-api/usingOraclize.sol";
/// @title EtherHiLoRandom
/// @dev the contract than handles the EtherHiLo random numbers
contract EtherHiLoRandom is usingOraclize, Ownable, EtherHiLoRandomNumberGenerator {
This file has been truncated, but you can view the full file.
INFO global: Vagrant version: 2.2.3
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.3/gems/vagrant-2.2.3/bin/vagrant"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_LOG="debug"
WARN global: resolv replacement has not been enabled!
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.3/gems/vagrant-2.2.3/plugins/synced_folders/nfs/plugin.rb
export const ONE_MILLISECOND: number = 1;
export const ONE_SECOND: number = ONE_MILLISECOND * 1000;
export const ONE_MINUTE: number = ONE_SECOND * 60;
export const ONE_HOUR: number = ONE_MINUTE * 60;
Date.prototype.getUTCTime = getUTCTime;
Date.prototype.isEqual = isEqual;
Date.prototype.isBefore = isBefore;
Date.prototype.isAfter = isAfter;