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
#!/usr/bin/ruby19 | |
require 'sequel' | |
Sequel::Model.plugin :schema | |
DB = Sequel.sqlite | |
class Post < Sequel::Model | |
set_schema do |
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
#!/usr/bin/ruby19 | |
require 'sequel' | |
Sequel::Model.plugin :schema | |
DB = Sequel.sqlite | |
class Post < Sequel::Model | |
set_schema do |
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
if exists('g:loaded_toggle_foldlevel') | |
finish | |
endif | |
let s:original_cpoptions = &cpoptions | |
set cpoptions&vim | |
function! s:toggle_foldlevel() | |
if !exists('s:folded') | |
let s:folded = 0 |
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
class DeepHash < Hash | |
def initialize | |
self.default_proc = Proc.new {|hash, key| hash[key] = DeepHash.new} | |
end | |
end |
NewerOlder