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 Redis::ActiveRecordOrderedSet | |
| include Enumerable | |
| delegate :each, :to => :entries | |
| def initialize(name, options={}) | |
| @set_name = name | |
| @data_set = Redis::SortedSet.new(@set_name) | |
| @updated_at_set = Redis::HashKey.new("meta_sorted_set::updated_at") | |
| @storage_limit = options[:storage_limit] |
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
| < 'use strict'; | |
| < | |
| 14c12 | |
| < resourceKey: function resourceKey(type) { | |
| --- | |
| > resourceKey: function(type) { | |
| 18,19c16,17 | |
| < resourceType: function resourceType(type) { | |
| < return strings.dasherize(this.schema.pluralize(type)); | |
| --- |
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/env bash | |
| git for-each-ref --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:blue)%(committerdate:relative)%(color:reset) %(color:red)%(refname)%(upstream:track)%(color:reset) %(authorname) %(objectname:short) %(color:green)%(contents:subject)' | sed 's/refs\/heads\///g' | less -XFR |
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
| Rx.Observable.prototype.showAs = function(name) { | |
| this.subscribe(value => console.log(name, value)); | |
| } | |
| console.log('loaded helpers'); |
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
| cd myprojects/zapnito | |
| git fetch origin | |
| git checkout master | |
| git reset --hard origin/master | |
| mv .env* zapnito/ | |
| mv solr zapnito/ | |
| mv tmp zapnito/ | |
| mv log zapnito/ | |
| mv .sass-cache zapnito/ |
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
| [ | |
| { | |
| "type": "summary", | |
| "description": "an awesome summary", | |
| "title": "an awesome title" | |
| }, | |
| { | |
| "type": "video", | |
| "mpg": "http://vids.com/awesome.mpg" | |
| } |
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
| import Html exposing (div, button, text) | |
| import Html.App exposing (program) | |
| import Html.Events exposing (onClick) | |
| import Time | |
| import Task | |
| main = | |
| program { init = init, view = view, update = update, subscriptions = always Sub.none } |
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
| Go the settings page/section: Clients > ClientABC > Advanced Settings > advanced > Application Metadata | |
| And add the metadata, e.g. Key: tenantId, Value: "tenant123" | |
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
| onEnter : Msg -> Attribute Msg | |
| onEnter msg = | |
| let | |
| filterKey ( code, shift ) = | |
| if (isEnter code) && (not shift) then | |
| Ok "triggering" | |
| else | |
| Err "not triggering" | |
| decoder = |
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
| <html> | |
| <head> | |
| <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.js"></script> | |
| <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.ns-autogrow/1.1.6/jquery.ns-autogrow.min.js"></script> | |
| <script> | |
| $(document).ready(function() { | |
| $('.new-message textarea').autogrow({vertical: true, horizontal: false}); | |
| }); | |
| </script> |