GitHub::SQL has been released as an officially-maintained project and ruby gem: github/github-ds.
|# From https://blog.svpino.com/2015/05/07/five-programming-problems-every-software-engineer-should-be-able-to-solve-in-less-than-1-hour|
|# Write a program that outputs all possibilities to put + or - or nothing|
|# between the numbers 1, 2, ..., 9 (in this order) such that the result is|
|# always 100. For example: 1 + 2 + 34 – 5 + 67 – 8 + 9 = 100.|
|# Hacky version:|
|["", "+", "-"].repeated_permutation(8).each do |operations||
|string = (2..9).zip(operations).reduce("1") do |str, (operand, operator)||
|# A demonstration/exploration of generating animation "frames" by combining|
|# objects that emit sequences of frames, with the following goals:|
|# * Declarative syntax for convenience and readability|
|# * Composability, for easily assembling larger animations from smaller pieces|
|# * Interruptability (see Flagged), so an animation sequence can be interrupted|
|# * Lazily-evaluated combinations so clock-based animations can be mixed.|
|# A top-level animation.|
We have an excellent training team at GitHub, and they've produced a series of videos talking about the basics of how to use git and GitHub.
The youtube channel is here.
|""" copy filename of current file to clipboard|
|map <Leader>cf :silent exe '!echo -n % \| pbcopy'<CR>:echo bufname('%')<CR>|
|""" edit filename from clipboard|
|map <silent> <Leader>ef :call EditFromClipboard()<CR>|
|let filename = expand(fnameescape(system('pbpaste')))|
|exe 'edit ' . filename|