Skip to content

Instantly share code, notes, and snippets.

@lovitt
lovitt / schema.graphql
Created May 7, 2020 — forked from thomsbg/schema.graphql
No parent container
View schema.graphql
interface EntryRevision {
title: String
body: EntryBody
# etc
}
# A published unit of content
type Entry implements EntryRevision {
draft: EntryDraft
}
View gist:abec108104722e9695b6
2.0.0-p247 :002 > /^(.+)(\\|\/)(.+)\.(.+)$/.match("C:\file\path\to\file.aa")
=> nil
2.0.0-p247 :003 > /^(.+)(\\|\/)(.+)\.(.+)$/.match('C:\file\path\to\file.aa')
=> #<MatchData "C:\\file\\path\\to\\file.aa" 1:"C:\\file\\path\\to" 2:"\\" 3:"file" 4:"aa">
View snippet.js
OX.AdRequest = OX.AdRequest || function(C, q) {
var F = OX.utils,
s = F.rand(),
J, a = {},
E, H = 0,
g, l, h = {},
x = {},
m, n, D, c, d, y = {
o: s
},
View snippet.js
OX.AdRequest = OX.AdRequest || function(C, q) {
var F = OX.utils,
s = F.rand(),
J, a = {},
E, H = 0,
g, l, h = {},
x = {},
m, n, D, c, d, y = {
o: s
},
View gist:4495868
$ irb
ree-1.8.7-2011.03 :026 > r1 = /\A[a-zA-Z]/
=> /\A[a-zA-Z]/
ree-1.8.7-2011.03 :027 > r2 = /^[a-zA-Z]/
=> /^[a-zA-Z]/
ree-1.8.7-2011.03 :028 > s = "aAAAAA
ree-1.8.7-2011.03 :029"> AaAAaAA
ree-1.8.7-2011.03 :030"> Bbbbbb
ree-1.8.7-2011.03 :031"> *fjkdjfdskj
ree-1.8.7-2011.03 :032"> &fdskfjsdkl
View gist:2046564
module Utils
module_function
def form_css
"<style type='text/css'>#{OmniAuth.config.form_css}</style>"
end
def deep_merge(hash, other_hash)
target = hash.dup