- https://ramdajs.com/docs/#all
- https://ramdajs.com/docs/#any
- https://ramdajs.com/docs/#aperture
- https://ramdajs.com/docs/#countBy
- https://ramdajs.com/docs/#dropRepeats
- https://ramdajs.com/docs/#dropRepeatsWith
- https://ramdajs.com/docs/#dropWhile
- https://ramdajs.com/docs/#filter
- https://ramdajs.com/docs/#find
- https://ramdajs.com/docs/#findIndex
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
Show hidden characters
| { | |
| "cmd": ["/Users/newtriks/Library/Plugins/sdks/flex_sdk_4.6.0.23201B/bin/mxmlc", | |
| "$file", | |
| "-static-link-runtime-shared-libraries=true"], | |
| "file_regex": "(.*)[(](\\d+)[)]:(?: col: (?:\\d+))? *Error: (.*)", | |
| "selector": "source.actionscript", | |
| "variants": [ | |
| { "cmd": ["open ${file_path}/${file_base_name}.swf"], | |
| "shell": true, | |
| "name": "Run" |
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 node | |
| var Q = require('q'), | |
| FS = require('fs'), | |
| PB = require('progress'), | |
| AWS = require('aws-sdk'), | |
| conf = new require('../config')(); | |
| AWS.config.update(conf.aws_credentials); |
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
| #!/bin/bash | |
| REVISION=$(heroku config:get REVISION) | |
| echo " info: heroku REVISION: $REVISION" | |
| function version_release | |
| { | |
| echo -e " info: writing: '\$tagged_release_version = \"$1\"' to version_helper.rb" | |
| echo -e "\$tagged_release_version = \"$1\"" > config/initializers/version_helper.rb | |
| git add config/initializers/version_helper.rb | |
| git commit -am "Updating version_helper with latest tagged version $1" | |
| echo " info: deployed version $REVISION is not yet tagged; tagging now as $1" |
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 {List, Record, toJS} from 'immutable'; | |
| import Rx, {Observable, Subject} from 'rx'; | |
| const initialState = Record({count: 0, text: '', items: List(), history: List(), future: List()}); | |
| const subject = new Subject(); | |
| const source = Observable.merge(subject) | |
| .scan((currentState, action) => action(currentState), initialState()); | |
| source.subscribe( | |
| state => { |
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
| { | |
| "cmd": [ | |
| "/Users/newtriks/Library/Developer/SDK/flex_sdk_4.6.0.23201B/bin/mxmlc", | |
| "$file", | |
| "-static-link-runtime-shared-libraries=false", | |
| "-load-config+=${file_path}/../config.xml", | |
| "-keep-as3-metadata+=Inject", | |
| "-keep-as3-metadata+=PostConstruct", | |
| "-allow-source-path-overlap=true", | |
| "-locale=en_US", |
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
| // following along https://medium.com/@luijar/kliesli-compositions-in-javascript-7e1a7218f0c4 | |
| const R = require('ramda') | |
| const Maybe = require('ramda-fantasy').Maybe | |
| // parse JSON string into object | |
| // parse :: String -> Object | Null | |
| function parse(s) { | |
| try { | |
| return JSON.parse(s) | |
| } catch (e) { |
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 path = require('path'); | |
| const webpack = require('webpack'); | |
| const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
| const PreloadWebpackPlugin = require('preload-webpack-plugin'); | |
| const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin'); | |
| const StyleExtHtmlWebpackPlugin = require('style-ext-html-webpack-plugin'); | |
| const CompressionPlugin = require('compression-webpack-plugin'); | |
| const autoprefixer = require('autoprefixer'); |
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 path = require('path'); | |
| const webpack = require('webpack'); | |
| const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
| const PreloadWebpackPlugin = require('preload-webpack-plugin'); | |
| const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin'); | |
| const StyleExtHtmlWebpackPlugin = require('style-ext-html-webpack-plugin'); | |
| const CompressionPlugin = require('compression-webpack-plugin'); | |
| const autoprefixer = require('autoprefixer'); |
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 ruby | |
| require 'rubygems' | |
| require 'sinatra' | |
| require 'haml' | |
| require 'nokogiri' | |
| require 'aws/s3' | |
| set :bucket, 'bucket-name' | |
| set :s3_key, 'xxxxxx' | |
| set :s3_secret, 'xxxxxx' |
NewerOlder