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 { Service } from '@feathersjs/feathers'; | |
import { App } from '../src/app.interface'; | |
import { Transformation } from '../src/services/transformations/transformations.interface'; | |
export default { | |
up: async (app: App): Promise<boolean> => { | |
// Get service | |
const s: Service<Transformation> = app.service('transformations'); |
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
// packages/ui/package.json | |
{ | |
.... | |
"scripts": { | |
"dev": "npm run watch-dev | npm run dev-stencil", | |
"dev-stencil": "npm run dev-mode && npm run co-prebuild && stencil build --dev --watch --serve", | |
"watch-dev": "node ./build/dev-watch.js" | |
}, |
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 { | |
FileDeleteResult, | |
FileReadResult, | |
FilesystemDirectory, | |
FileWriteOptions, | |
FileWriteResult, | |
Plugins, | |
ReaddirResult | |
} from '@capacitor/core'; | |
import { getLogger, loggableObject, makeDebounce } from '@case-os/commons'; |
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 { Component, h, Element, Prop, Host, Event, EventEmitter } from '@stencil/core'; | |
@Component({ | |
tag: 'animatable-component' | |
}) | |
export class AnimatableComponent { | |
@Element() el!: HTMLElement; | |
@Prop() keyFrames: Keyframe[] | |
@Prop() options: KeyframeAnimationOptions | |
@Event() finish: EventEmitter; |
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
export PATH=/usr/local/bin:$PATH | |
export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH" | |
# NVM (Node version manager) | |
export NVM_DIR="$HOME/.nvm" | |
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
. "$(brew --prefix nvm)/nvm.sh" | |
# JAVA / ANDROID | |
#export ANDROID_HOME=/usr/local/opt/android-sdk |
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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
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
/** | |
* This CSS uses adjacent selectors instead of general sibling (~) selectors | |
* for ion radio that are broken in iOS 9 UIWebView. | |
* | |
* To apply the patch, include this CSS after your ionic.css include. | |
* | |
* SASS version of Max Lynch's CSS snippet: | |
* https://gist.github.com/mlynch/064d27912b511a63caa3 | |
*/ |
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/ruby | |
# encoding: utf-8 | |
# Grab google web fonts and embed them as base64 data URIs | |
# <http://brettterpstra.com/2015/03/14/embedding-google-web-fonts/> | |
require 'base64' | |
if ARGV.length > 0 | |
input = ARGV | |
elsif STDIN.stat.size > 0 | |
input = STDIN.read.strip.split(/\n+/) |
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
(function() { | |
'use strict'; | |
var app = angular.module('net.bitflower.ngModelOnChange', []); | |
// Listens to the change event of the input and sets Angular's value / ngModel of the element | |
app.directive('ngModelOnChange', function() { | |
return { | |
restrict: 'A', |
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
/** | |
* A generic confirmation for risky actions. | |
* Usage: Add attributes: ng-really-message="Are you sure"? ng-really-click="takeAction()" function | |
*/ | |
angular.module('app').directive('ngReallyClick', [function() { | |
return { | |
restrict: 'A', | |
link: function(scope, element, attrs) { | |
element.bind('click', function() { | |
var message = attrs.ngReallyMessage; |