Driven by UTS
- Create Collection
- typeName
-- 1. Place in ~/Library/Scripts and enable the Applescript menu via the Applescript Editor | |
-- 2. Substitute "vpn.example.com" and "redacted" for your VPN server and password | |
-- 3. Open Security & Privacy System Preferences, go to Privacy, Accessibility | |
-- 4. Enable Applescript Editor and System UI Server | |
-- 5. Trigger script from the menu | |
-- 6. Enjoy being connected | |
tell application "Cisco AnyConnect Secure Mobility Client" | |
activate | |
end tell |
# Ruby is our language as asciidoctor is a ruby gem. | |
lang: ruby | |
before_install: | |
- sudo apt-get install pandoc | |
- gem install asciidoctor | |
script: | |
- make | |
after_success: | |
- .travis/push.sh | |
env: |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "PublicReadGetObject", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", |
function Bindable(ClassRef, onChangeMethodName){ | |
class BindableClass{ | |
constructor(...args){ | |
const instance = new (ClassRef.bind(this))(...args); | |
for(const k in instance){ | |
if(instance.hasOwnProperty(k)){ | |
const initialValue = instance[k]; | |
const privatePropertyName = `_${k}`; | |
instance[privatePropertyName] = initialValue; |
import React, { Component } from 'react'; | |
export default class FluxDI { | |
static validateContextName(name){ | |
if(typeof name !== 'string'){ | |
throw new Error('`name` must be a string.'); | |
} | |
} | |
function collate(pages = []){ | |
const flats = []; | |
const { length } = pages; | |
const flatLength = Math.ceil(length/2); | |
const even = length % 2 === 0; | |
const newPages = [...pages]; | |
if(!even){ | |
const lastPage = newPages.pop(); | |
// JSDI | |
class K{ | |
handler; | |
constructor(handler){ | |
this.handler = handler; | |
} | |
exec() { |
// Query | |
{ | |
type: 'OR_SET', | |
data: [ | |
{ | |
type: 'AND_SET', | |
data: [ | |
{ | |
type: 'CONDITION', | |
fieldName: 'myField', |
Driven by UTS
// Type Map | |
{ | |
PrimitiveType: { | |
name: 'PrimitiveType', | |
label: 'Primitive Type', | |
primitive: true | |
}, | |
AnotherType: { | |
name: 'AnotherType', | |
label: 'Another Type', |