Skip to content

Instantly share code, notes, and snippets.

<a class="bookmarklet" href="javascript:(function()%7Bjavascript%3A%20(function%20()%20%7Bvar%20isTrello%3Bvar%20estimate%3Bvar%20authenticationSuccess%20%3D%20function%20()%20%7Bconsole.log(%22Successful%20authentication%22)%3B%7D%3Bvar%20authenticationFailure%20%3D%20function%20()%20%7Bconsole.log(%22Failed%20authentication%22)%3B%7D%3Bvar%20trelloSuccess%20%3D%20function%20(result)%20%7Bconsole.log(%22Trello%20Success%22)%3B%2F*var%20textareaResponse%3Bif(isTrello)%20%7BtextareaResponse%20%3D%20%24(%22textarea.js-new-comment-input%22).first()%3BtextareaResponse.html(%22Hi%2C%5Cn%5CnThis%20%5Bticket%5D(%22%20%2B%20result.url%20%2B%20%22)%20has%20been%20logged%20in%20the%20%5BDev%20Task%20Manager%5D(http%3A%2F%2Fwww.80d-stage.com%2Fhome%2Fmanager).%20Please%20manage%20it's%20priority%20there.%5CnWe%20are%20roughly%20estimating%20the%20development%20time%20to%20be%20around%20**%22%20%2B%20estimate%20%2B%20%22**.%5Cn%5CnCheers%22)%3BtextareaResponse.css(%22height%22%2C%22180px%22)%3B%7Delse%20%7Bvar%20editable
@simonboak
simonboak / ViewController
Created November 1, 2014 18:26
ioscreator.com - iOS 8 Calculator updated view controller
import UIKit
class ViewController: UIViewController {
var isTypingNumber = false
var firstNumber:Int!
var secondNumber:Int!
var operation = ""
override func viewDidLoad() {
$('.slides').on('click', function () {
$(this).siblings('.flex-direction-nav').children('li').children('a.flex-next').trigger('click');
});