Personal wiki for imba progamming languare.
Basics
yes/no = true/false.
if status >= 200
return yes
// ==UserScript== | |
// @name Glastonbury helper | |
// @namespace http://tampermonkey.net/ | |
// @version 1.1 | |
// @description | |
// @author a.s.panchenko@gmail.com | |
// @match https://www.happymeeple.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=happymeeple.com | |
// @grant none | |
// ==/UserScript== |
Personal wiki for imba progamming languare.
Basics
yes/no = true/false.
if status >= 200
return yes
My personal modifications for Karabiner
Reference: https://pqrs.org/osx/karabiner/json.html
{{! | |
Template for rendering .scss sprite file of svg sprite library (https://github.com/jkphl/svg-sprite). | |
Author: Panchenko Alexandr (github.com/panych) | |
source: https://gist.github.com/panych/b83287549f77535c08e8878a2c9e9e33 | |
This template: | |
1. Resolve issue with default padding model of svg-sprite library (https://github.com/jkphl/svg-sprite/issues/200). You have "real" margins | |
2. Uses px instead of % in background-position | |
3. Doesn't create ready to use classes, like `.icon-search`, but has mixin for that. |
class A { | |
constructor(msg) { | |
this.message = msg ? msg : 'default A message' | |
} | |
sayHello(additional) { | |
console.log(`${this.message}${additional ? ` and ${additional}` : ''}`) | |
} | |
} | |
class B { |
// Convert node to mithril fragment (mNode) | |
var DOMFragment = function(markup) { | |
if (markup.indexOf("<!doctype") > -1) return [new DOMParser().parseFromString(markup, "text/html").childNodes[1]] | |
var container = document.createElement("div"); | |
container.insertAdjacentHTML("beforeend", markup); | |
return container.childNodes; | |
} | |
var VirtualFragment = function recurse(domFragment) { |
# application_helper.rb | |
def b(block_name, options={}, &block) | |
options.merge!(:body => capture(&block)) if block_given? | |
render :partial => block_name, :locals => options | |
end |
<div class="dev-diagram"> | |
<% steps.each_with_index do |step, index| %> | |
<% if index.even? %> | |
<% step_class = 'dev-diagram__step dev-diagram__step_right' %> | |
<% else %> | |
<% step_class = 'dev-diagram__step dev-diagram__step_left' %> | |
<% end %> | |
<div class="#{step_class}"> | |
<div class="dev-diagram__ic"> |
/* | |
* Allow to set draft page as a parent page | |
*/ | |
add_filter( 'page_attributes_dropdown_pages_args', 'enable_drafts_parents' ); | |
add_filter( 'quick_edit_dropdown_pages_args', 'enable_drafts_parents' ); | |
function enable_drafts_parents( $args ) { | |
$args['post_status'] = 'draft,publish,pending'; | |
return $args; | |
} |
http://olivierlacan.com/posts/launch-sublime-text-3-from-the-command-line/
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
Usage:
subl .