- Create a new sfdx project:
sfdx force:project:create -n test| // PLUGIN_INFO//{{{ | |
| var PLUGIN_INFO = xml` | |
| <VimperatorPlugin> | |
| <name>Yank as Org</name> | |
| <description>yank-as-org from Vimperator</description> | |
| <author mail="[email protected]" homepage="http://jstvz.org">jstvz</author> | |
| <version>0.1</version> | |
| <minVersion>2.0pre</minVersion> | |
| <maxVersion>2.0pre</maxVersion> | |
| <updateURL>https://github.com/vimpr/vimperator-plugins/raw/master/yank-as-org.js</updateURL> |
| ### Keybase proof | |
| I hereby claim: | |
| * I am jstvz on github. | |
| * I am jstvz (https://keybase.io/jstvz) on keybase. | |
| * I have a public key ASB_OTQ14asIW9vHkwuOMiG4EuEB-2NwSrQ4kqo-nE_pYQo | |
| To claim this, I am signing this object: |
| var postEventToOneApp = function(name, params, fallbackAction) { | |
| if (SfdcApp && SfdcApp.projectOneNavigator && SfdcApp.projectOneNavigator.fireContainerEvent) { | |
| // Not officially supported by Salesforce | |
| SfdcApp.projectOneNavigator.fireContainerEvent(name, params); | |
| } else if (fallbackAction) { | |
| // Fallback if no Salesforce support of fireContainerEvent | |
| fallbackAction(); | |
| } | |
| }; |
| # the correct way, but slow | |
| #sfdx_prompt(){ | |
| # local sfdx_default="$(sfdx force:config:list | grep defaultusername | awk '{print $2}')" | |
| # if [[ -n "$sfdx_default" ]]; then | |
| # echo -n " $sfdx_default" | |
| # fi | |
| #} | |
| # the fast way, but incorrect | |
| sfdx_prompt(){ |
| " SFDX mappings | |
| " Requires https://github.com/skywind3000/asyncrun.vim | |
| let mapleader = "\<Space>" | |
| nmap <leader>fst :AsyncRun sfdx force:source:status<CR> | |
| nmap <leader>fsp :AsyncRun sfdx force:source:push<CR> | |
| nmap <leader>wfsp :w<CR> :AsyncRun sfdx force:source:push<CR> | |
| nmap <leader>fsl :AsyncRun sfdx force:source:pull<CR> | |
| nmap <leader>fol :AsyncRun sfdx force:org:list<CR> |
| /** | |
| * @license AngularJS v1.4.4-build.4113+sha.44ce9c8 | |
| * (c) 2010-2015 Google, Inc. http://angularjs.org | |
| * License: MIT | |
| */ | |
| (function(window, angular, undefined) {'use strict'; | |
| /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
| * Any commits to this file should be reviewed with security in mind. * | |
| * Changes to this file can potentially create security vulnerabilities. * |
| import pandas as pd | |
| import json | |
| import urllib2 | |
| """ | |
| Strip out the callback parameter from your url | |
| "&callback=jQuery17105043562010396272_1404232573870&_=1404232574998" | |
| """ | |
| url = 'https://www.googleapis.com/fusiontables/v1/query?key=AIzaSyAYkamn8YeEjHRpv892i26Mfv6i09eEdPM&sql=SELECT%20beach_id,%20name,%20county,%20mid_lat,%20mid_lon,%20samples,%20pct_samples_bav,%20loc_valid%20FROM%201uK8UlIIOG59txfGjH2WxrDIr_KIxR9lGixkqTple%20WHERE%20state%20=%20%27FL%27&typed=true' |
| #!/system/xbin/bash | |
| CHROOT=/data/__felix__/__chroot__ | |
| if [ -z "$1" -o "$1" == root ]; then | |
| CMD='/bin/bash -l' | |
| else | |
| CMD="/bin/su - $1" | |
| fi |