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
defmodule SchemaChecker do | |
def find_field_discrepancies do | |
schema_modules() | |
|> Enum.map(fn mod -> | |
{mod.__schema__(:source), check_module(mod)} | |
end) | |
end | |
defp schema_modules do | |
{:ok, modules} = :application.get_key(:core, :modules) |
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
### A Pluto.jl notebook ### | |
# v0.14.1 | |
using Markdown | |
using InteractiveUtils | |
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error). | |
macro bind(def, element) | |
quote | |
local el = $(esc(element)) |
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
Plug 'itchyny/lightline.vim' | |
let g:lightline = { | |
\ 'colorscheme': 'challenger_deep', | |
\ 'active': { | |
\ 'left': [ [ 'mode', 'paste' ], | |
\ [ 'cocstatus', 'readonly', 'gitbranch', 'filename', 'modified' ] ] | |
\ }, | |
\ 'component_function': { | |
\ 'cocstatus': 'coc#status', | |
\ 'gitbranch': 'FugitiveHead', |
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 os, streams, parsecsv, options, json | |
type | |
Filter = object | |
column: string | |
`include`: bool | |
values: seq | |
min: Option[string] | |
max: Option[string] | |
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
from tinydb import TinyDB | |
from tinydb.database import Table, StorageProxy, Document | |
from tinydb.storages import MemoryStorage | |
from uuid import uuid4 | |
class UUIDTable(Table): | |
def _init_last_id(self, data): | |
pass |
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
SELECT | |
*, | |
ST_Distance( | |
"geom", | |
ST_Transform( | |
'0101000020E6100000E54350357A995EC0CA8745B181E34240', -- Value of a geom in the same table | |
2163 | |
) | |
) AS "distance" | |
FROM "zoning_source_locations" |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
value: '<h1>Demo header</h1>This is some <i>italic</i> text.' | |
}); |
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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
string: null, | |
selection: "", | |
actions: { | |
selectionChanged(event) { | |
let target = event.target, | |
string = this.get('string'); | |
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
% time GHOST_NODE_VERSION_CHECK=false npm install ghost | |
npm WARN engine [email protected]: wanted: {"node":"~0.10.0 || ~0.12.0 || ~4.2.0","iojs":"~1.2.0"} (current: {"node":"5.5.0","npm":"3.3.12"}) | |
npm WARN engine [email protected]: wanted: {"node":"~0.10.0 || ~0.12.0 || ~4.2.0","iojs":"~1.2.0"} (current: {"node":"5.5.0","npm":"3.3.12"}) | |
> [email protected] preinstall /Users/halfdan/Projects/Ghost/test1/node_modules/.staging/ghost-0180c8c49224a758d7c7d6284f62b6e0 | |
> npm install semver && node -e "require('./core/server/utils/startup-check.js').nodeVersion()" | |
[email protected] /Users/halfdan/Projects/Ghost/test1/node_modules/.staging/ghost-0180c8c49224a758d7c7d6284f62b6e0 | |
└── [email protected] |
NewerOlder