selectedValue = (select) ->
select.options[select.selectedIndex].value
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
| def git-edit -params 1 -shell-script-candidates %{ git ls-files } %{ edit %arg{1} } | |
| hook global InsertChar k %{ try %{ | |
| exec -draft hH <a-k>jk<ret> d | |
| exec <esc> | |
| }} | |
| eval %sh{kak-lsp --kakoune -s $kak_session} | |
| hook global WinSetOption filetype=(rust|python|go|javascript|typescript|c|cpp) %{ |
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
| ;;; SICP - Chapter 1 | |
| ;;; Exercise 1.1 | |
| (use-modules (ice-9 pretty-print)) | |
| 10 ; | |
| (+ 5 3 4) ; 12 | |
| (- 9 1) ; 8 |
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
| var cycle = function(arr){return requestAnimationFrame(Function.prototype) % arr.length} | |
| var cycle = function(arr){return arr[requestAnimationFrame(Function.prototype) % arr.length]} |
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
| { | |
| "name": "something", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "serve": "python -m SimpleHTTPServer 8000", | |
| "build": "browserify ./index.js -o ./output/bundle.js", | |
| "watch": "watchify ./index.js -o ./output/bundle.js --debug --verbose", | |
| "style": "stylus ./css/main.styl -c -w -u nib -o ./output/main.css", |
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
| (defun gk-markdown-preview-buffer () | |
| (interactive) | |
| (let* ((buf-this (buffer-name (current-buffer))) | |
| (buf-html (get-buffer-create | |
| (format "*gk-md-html (%s)*" buf-this)))) | |
| (markdown-other-window (buffer-name buf-html)) | |
| (shr-render-buffer buf-html) | |
| (eww-mode) | |
| (kill-buffer buf-html))) |
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
| /*common - use on all pages*/ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| border: 0; | |
| } | |
| body { | |
| font-family: 'Lato', sans-serif; |
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
| React = require 'react' | |
| module?.exports = React.createClass | |
| displayName: 'Stepper' | |
| getInitialState: -> | |
| activeStep: 0 | |
| onClickNext: -> | |
| @goToStep Math.min (@props.children.length - 1), (@state.activeStep + 1) |
NewerOlder