This file contains hidden or 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 | |
| n.nspname AS enum_schema, | |
| t.typname AS enum_name, | |
| e.enumlabel AS enum_value | |
| FROM | |
| pg_type t | |
| JOIN | |
| pg_enum e ON t.oid = e.enumtypid | |
| JOIN | |
| pg_namespace n ON n.oid = t.typnamespace |
This file contains hidden or 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 distinct | |
| fk_tco.table_schema || '.' || fk_tco.table_name as fk_table_name, | |
| '>-' as rel, | |
| pk_tco.table_schema || '.' || pk_tco.table_name as primary_table_name | |
| from information_schema.referential_constraints rco | |
| join information_schema.table_constraints fk_tco | |
| on rco.constraint_name = fk_tco.constraint_name | |
| and rco.constraint_schema = fk_tco.table_schema | |
| join information_schema.table_constraints pk_tco | |
| on rco.unique_constraint_name = pk_tco.constraint_name |
This file contains hidden or 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 * as sass from 'node-sass'; | |
| import * as svelte from 'svelte/compiler'; | |
| import * as fs from 'fs'; | |
| import { promisify } from 'util'; | |
| const renderSass = promisify(sass.render); | |
| const readFile = promisify(fs.readFile); | |
| const preprocessSass = async (data: string) => { | |
| const result = await renderSass({ data }); |
This file contains hidden or 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
| /* CSS text balloon using variables, calc and transform */ | |
| @import url(http://fonts.googleapis.com/css?family=Chewy); | |
| div { | |
| --balloon-color: #FFF; | |
| --balloon-border: 3px; | |
| position: relative; | |
| top: 1em; | |
| left: 1em; |
This file contains hidden or 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
| /* Pulsating multiple borders with box-shadow & var */ | |
| body { | |
| --bg: #6495ED; | |
| background-color: var(--bg); | |
| } | |
| div { | |
| --border-size: 4px; | |
| width: 50%; | |
| height: 10em; | |
| background-color: white; |
This file contains hidden or 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
| /* transform order test */ | |
| html,body { | |
| height: 100%; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| div { | |
| width: 100px; | |
| height: 100px; | |
| background: red; |
This file contains hidden or 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
| /* | |
| AMD-compatible async 'define' modularization by sergiolopes and luiz: | |
| https://gist.github.com/luiz/d71c99cf1cda53190e70 | |
| Contains the 'define' module syntax compatible with the official API and | |
| support for injecting the 'export' variable and a flexible dependency | |
| resolver with no restrictions on how you load your files. | |
| This implementation doesn't load your JS files so you have to do it. You | |
| can bundle one big file, load multiple files, load them asynchronously, out |
This file contains hidden or 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
| /* :lang pseudoclass tests */ | |
| :lang(fr) > p { | |
| background-color: yellow; | |
| } | |
| :lang(fr) > strong { | |
| font-style: italic; | |
| } | |
| strong:lang(pt) { | |
| color: red; | |
| } |
This file contains hidden or 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
| html,body { | |
| height: 100%; | |
| } | |
| body:before { | |
| content: ''; | |
| height: 100%; | |
| display: inline-block; | |
| vertical-align: middle; | |
| } | |
| meter { |
NewerOlder