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
package dev.rockyj; | |
import io.vavr.API; | |
import io.vavr.control.Either; | |
import static io.vavr.API.*; | |
enum PossibleWorkflowStates { | |
INIT, | |
IN_PROGRESS, |
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
hr { | |
border-top: 2px solid #045295 !important; | |
} | |
.homepage-blocks { | |
display: none; | |
} | |
#app-cta { | |
display: 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
const isPresent = complement(isNil) | |
const isAllowed = (val) => ['foo', 'bar'].includes(val) | |
const hasChildWithProp = propSatisfies(isAllowed, 'x') | |
const validResponseInEnum = allPass([isPresent, isAllowed]) | |
const validResponseWithProp = allPass([isPresent, hasChildWithProp]) | |
console.log(validResponseInEnum(null)) | |
console.log(validResponseInEnum('foo')) | |
console.log(validResponseWithProp({y: 'foo'})) |
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
apiVersion: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
name: fluentd-es | |
namespace: kube-system | |
labels: | |
k8s-addon: logging-elasticsearch.addons.k8s.io | |
k8s-app: fluentd-es | |
kubernetes.io/cluster-service: "true" | |
version: v1.22 |
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
GEM | |
remote: https://rubygems.org/ | |
specs: | |
actioncable (5.0.0.beta1) | |
actionpack (= 5.0.0.beta1) | |
celluloid (~> 0.17.2) | |
coffee-rails (~> 4.1.0) | |
em-hiredis (~> 0.3.0) | |
faye-websocket (~> 0.10.0) | |
redis (~> 3.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
// Generated on 2013-10-24 using generator-angular 0.5.1 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
var proxySnippet = require('grunt-connect-proxy/lib/utils').proxyRequest; | |
var mountFolder = function (connect, dir) { |
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
// Generated on 2013-10-22 using generator-angular 0.5.0 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
module.exports = function (grunt) { |
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
require 'celluloid/autostart' | |
class Cook | |
include Celluloid | |
def produce(manager) | |
manager.async.inform("produced") | |
end | |
end |
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 Cook | |
def produce | |
"item" | |
end | |
end | |
class Consumer | |
def consume(item) | |
#do something with item | |
end |
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
//Copy this plugin and add 'fasterslower' to the features array. Also write the CSS :) | |
(function($) { | |
$.extend(mejs.MepDefaults, { | |
fasterslowerText: 'Faster/Slower' | |
}); | |
$.extend(MediaElementPlayer.prototype, { | |
buildfasterslower: function(player, controls, layers, media) { |
NewerOlder