Skip to content

Instantly share code, notes, and snippets.

@lovitt
lovitt / schema.graphql
Created May 7, 2020 21:53 — forked from thomsbg/schema.graphql
No parent container
interface EntryRevision {
title: String
body: EntryBody
# etc
}
# A published unit of content
type Entry implements EntryRevision {
draft: EntryDraft
}
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">
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
},
@lovitt
lovitt / snippet.js
Last active August 29, 2015 14:05 — forked from banderson623/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
},
$ 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
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