Skip to content

Instantly share code, notes, and snippets.

@scheibome
scheibome / sublime-text-macos-context-menu.md
Created January 30, 2019 12:56 — forked from idleberg/sublime-text-macos-context-menu.md
“Open in Sublime Text” in macOS context-menu

Open in Sublime Text

  • Open Automator
  • Create a new Service
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
  • Set the script action to /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n "$@"
  • Set “Pass input” to as arguments
  • Save as Open in Sublime Text
@scheibome
scheibome / checkout.html
Last active October 8, 2018 17:40
multi shipping in tinystoragecart checkout
<select id="shippingselect">
<option disabled selected value>Select</option>
<option value="2" data-shippingselect="15">Europe Shipping +15€</option>
<option value="3" data-shippingselect="35">International Shiping +35€</option>
</select>
@scheibome
scheibome / main.js
Created October 3, 2018 16:35
PayPal input in tinystoragecart
cart.searchDataAndReplace(document, 'cartcheckoutpaypal', '{fullprice}', fullprice.toFixed(2), 1);
@scheibome
scheibome / checkout.json.php
Created July 30, 2018 11:51
Tinystoragecart - checkout.json.php
<?php
/**
* Gets an element of an array by key
*
* <code>
*
* $array = array(
* 'cat' => 'miao',
* 'dog' => 'wuff',
@scheibome
scheibome / Update remote repo
Created May 17, 2018 19:46 — forked from mandiwise/Update remote repo
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket

Keybase proof

I hereby claim:

  • I am scheibome on github.
  • I am scheibo (https://keybase.io/scheibo) on keybase.
  • I have a public key whose fingerprint is FB0B CB15 A9A3 B5EC 7415 9AA6 99C8 57C0 78BB 58DC

To claim this, I am signing this object:

<?php
/**
* Gets an element of an array by key
*
* <code>
*
* $array = array(
* 'cat' => 'miao',
* 'dog' => 'wuff',
@scheibome
scheibome / keybase.md
Created November 22, 2016 11:20
keybase.md

Keybase proof

I hereby claim:

  • I am scheibome on github.
  • I am scheibo (https://keybase.io/scheibo) on keybase.
  • I have a public key whose fingerprint is 4AA1 4FA4 9342 B11D 0A91 0549 4872 E1A6 1D5A 842C

To claim this, I am signing this object:

webranking-optimierung.net
agentur-opt.com
agentur-optimierung.net
seowebagentur.net
agentur-marketing.com
opt-support.net
seoagentur-marketing.net
seoagenturmarketing.net
se-seo.net
seoagentur-rank.net
@scheibome
scheibome / basic.js
Created February 18, 2016 20:00
QZ javascript
(function($) {
'use strict';
/**
* trim functions
*
* @class trim
*/
function Trim() {
/**
* @type {number}