mkdir -p && cdg clone <url> && cdgs=git status
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
| ''' | |
| Name: git-to-public | |
| Description: Simple continuous deployment script. Listens for pushes to | |
| Gitlab repositories. When there is a push to the master | |
| branch it clones the repo to the same folder as the script | |
| is in. | |
| Author: Koen Vendrik <[email protected]> | |
| Date: 22/11/2014 | |
| License: MIT |
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
| var doc = context.document, | |
| app = [NSApplication sharedApplication], | |
| jsonStr = [doc askForUserInput:"Enter the JSON you'd like to use" initialValue:""], | |
| json; | |
| try { | |
| json = JSON.parse(jsonStr); | |
| } catch(e){ | |
| [app displayDialog:"Whoops, looks like that's not valid JSON."] | |
| return; |
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
| console.log( | |
| getTrelloListItemsStr('Ready for Dev', 9) | |
| ); |
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 python | |
| import json | |
| import sys | |
| import subprocess | |
| import argparse | |
| import re | |
| parser = argparse.ArgumentParser(description='Cordova Package Manager') |
With this set up I can clone with my default key as Bitbucket suggests:
git clone [email protected]:username/project.git
If I want to clone a repository from my second account I can alter the command to use the second SSH key I generated:
git clone git@bitbucket-accountB:username/project.git
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
| if [ -z "$1" -o -z "$2" ] ; then | |
| printf 'Please supply a APK name and semver string\nusage: _build-android-apk <APK_NAME> <SEMVER_STRING>' | |
| exit 1 | |
| fi | |
| APK_NAME=$1 | |
| SEMVER_STRING=$2 | |
| function check_certificate(){ | |
| # create key if not present |
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
| all: prep | |
| prep: | |
| mv compiler.js compiler | |
| mv converter.js converter | |
| chmod 755 compiler converter |
- Construct unique array of letters, numbers and special chars (matrix)
- Add a random number of chars to each variable
- Replace every char in the input with a set of chars from the list
Hash key could be based on: (make sure the same strings have equal hashes)
- String Length
- Take every chars alphabetic index and use the total as the key to generating the hash
x = total alphabetic index number of input
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
| var ListenersHelper = function(){ | |
| this._listeners = {}; | |
| }; | |
| ListenersHelper.prototype.on = function(event, callback){ | |
| if(typeof this._listeners[event] !== 'object'){ | |
| this._listeners[event] = []; | |
| } | |
| this._listeners[event].push(callback); | |
| }; |