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
// ==UserScript== | |
// @name defer/async for Opera | |
// @namespace http://d.hatena.ne.jp/edvakf/ | |
// @license Public Domain | |
// Updated by Miles Elam <[email protected]> | |
// ==/UserScript== | |
(function(window, document, opera) { | |
function load_script(script, attr) { |
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
using namespace std; | |
struct Node { | |
int value; | |
node* left; | |
node* right; | |
} | |
boolean findSum(Node* ref, int prev, int target) { | |
if (!ref) { |
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
-- GeoLite2 CSV files for use with PostgreSQL 9+ | |
-- by Miles Elam <[email protected]> | |
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
-- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
-- Copyright 2016, Miles Elam <[email protected]> | |
-- MIT License, http://www.opensource.org/licenses/mit-license.php | |
CREATE OR REPLACE FUNCTION splice(target anyarray, start integer, to_insert anyarray) | |
RETURNS anyarray LANGUAGE 'sql' IMMUTABLE LEAKPROOF STRICT AS $$ | |
SELECT target[0:start - 1] | |
|| to_insert | |
|| target[start:array_length(target, 1)] | |
$$; |
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
const NAMES = `admintools | |
auth_delay | |
auto_explain | |
bloom | |
btree_gin | |
btree_gist | |
chkpass | |
citext | |
cube | |
dblink |
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 type { Plugin, Build } from "graphile-build"; | |
import type { PgClass, PgProc } from "./PgIntrospectionPlugin"; | |
export const getComputedColumnDetails = ( | |
build: Build, | |
table: PgClass, | |
proc: PgProc | |
) => { | |
if (proc.isVolatile) return null; | |
if (proc.namespaceId !== table.namespaceId) return null; |