View AddressForm.vue
<template>
<ui-form name="address">
<div class="fields">
<ui-input
name="house_no"
label="House name / no"
:value.sync="values.house_no"
View CarLoader.js
import Vue from 'vue'
import _ from 'lodash'
import { compare, stringify } from 'utils/query'
import store from 'app/store'
/**
* Car loader service
*
* Removes responsibility of loading cars from the results store
*
View 0. notes.md
View pythagorean-triples.js
// -----------------------------------------------------------------------------
// utils
function isPrime(value)
{
for(var i = 2; i < value; i++)
{
if(value % i === 0)
{
return false;
View rollup-jquery.js
/**
* Basic rollup setup for jQuery plugin development:
*
* - watch src folder
* - transpile ES6 to ES5
* - create development version (source maps)
* - create production version (minified)
*/
// dependencies
View console.txt
Foo > 1
Bar > 1
Bar (doubled) > 2
Bar (doubled, default message) > New value is: 2
Bar (doubled, custom message) > New custom value is: 2
Bar (doubled, default message, uppercase) > NEW VALUE IS: 2
Bar (doubled, custom message, uppercase) > NEW CUSTOM VALUE IS: 2
View MPlayerX Launcher.app
on run
do shell script "open -n /Applications/MPlayerX.app"
tell application "MPlayerX" to activate
end run
on open theFiles
repeat with theFile in theFiles
do shell script "open -na /Applications/MPlayerX.app " & quote & (POSIX path of theFile) & quote
end repeat
tell application "MPlayerX" to activate
View jquery.upgrade-columns.js
var $ = jQuery;
/**
* Upgrade Columns jQuery plugin
*
* Upgrades colgroup formatting to CSS styles
*/
$.fn.upgradeColumns = function()
{
// variables
View ratio.js
Vue.component('ratio', {
template:'<div class="ratio" :style="style"><slot></slot></div>',
props:
{
width:
{
default :512,
type :[String, Number],