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
For instructions, go to: | |
https://github.com/blackbridge/ansible-server/blob/master/docs/README.md | |
For the raw script, go to: | |
https://github.com/blackbridge/ansible-server/blob/master/docs/post-receive.sh |
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 { h, Fragment, useRef } from 'jsx-dom' | |
import { withUpdate } from './withUpdate.js' | |
const Example = withUpdate(({ update, ...props }) => { | |
const state = { | |
value : 'default', | |
input : useRef(), | |
...props, | |
} |
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 PropTypes from 'prop-types' | |
import React from 'react' | |
import Fieldset from 'part:@sanity/components/fieldsets/default' | |
import { setIfMissing } from 'part:@sanity/form-builder/patch-event' | |
import { FormBuilderInput, withDocument, withValuePath } from 'part:@sanity/form-builder' | |
import fieldStyle from '@sanity/form-builder/lib/inputs/ObjectInput/styles/Field.css' | |
const isFunction = (obj) => !!(obj && obj.constructor && obj.call && obj.apply) |
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 bash | |
# gets arguments/options from input, using `--arg=value`, `--arg value`, or `-a value` format | |
# doesn't allow doubling up short args, e.g. `-ot` | |
positional=() | |
one= | |
two= | |
while [ "$#" -gt 0 ]; do |
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
// can use a random UUID for clientID | |
// from: https://gist.github.com/jed/982883 | |
function uuid(a){return a?(a^Math.random()*16>>a/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,uuid)} | |
// stops analytics from working at all | |
window['ga-disable-UA-XXXXX-Y'] = true; |
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
boolean UIViewControllerBasedStatusBarAppearance to NO |