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
| /* | |
| The MIT License (MIT) | |
| Copyright (c) 2014 Ismael Celis | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
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
| require "rubygems" | |
| require "selenium-webdriver" | |
| def wait(timeout = 10, &blk) | |
| end_time = Time.now + timeout | |
| until Time.now >= end_time | |
| begin | |
| return yield | |
| rescue Selenium::WebDriver::Error::NoSuchElementError |
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
| /** | |
| * Annoying.js - How to be an asshole to your users | |
| * | |
| * DO NOT EVER, EVER USE THIS. | |
| * | |
| * Copyright (c) 2011 Kilian Valkhof (kilianvalkhof.com) | |
| * Visit https://gist.github.com/767982 for more information and changelogs. | |
| * Visit http://kilianvalkhof.com/2011/javascript/annoying-js-how-to-be-an-asshole/ for the introduction and weblog | |
| * Check out https://gist.github.com/942745 if you want to annoy developer instead of visitors | |
| * |
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
| namespace :ubuntu do | |
| desc "Setup Environment" | |
| task :setup_env, :roles => :app do | |
| update_apt_get | |
| install_dev_tools | |
| install_git | |
| install_subversion | |
| install_sqlite3 | |
| # Install and setup RVM instead of old Rails stack | |
| #install_rails_stack |
This gist is no longer valid. Please see Compass-Rails for instructions on how to install.
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 those folks not already hanging out in #documentcloud... here's the log of this afternoon's Ember/Backbone politics discussion. | |
| 12:21 PM <wycats> jashkenas: hey | |
| 12:21 PM <wycats> jashkenas: I'm sorry | |
| 12:21 PM <wycats> how would you like me to describe backbone? | |
| 12:21 PM <wycats> let's work this out for once and for all :) | |
| 12:21 PM <wycats> I'm definitely not intentionally saying incorrect things about backbone | |
| 12:22 PM • knowtheory gets out popcorn | |
| 12:24 PM <jashkenas> don't worry about it too much -- I'm just not terribly pleased with backbone being continued to be used as the strawman... | |
| 12:24 PM <wycats> jashkenas: I am worried about it a lot |
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
| // Copyright 2012 Pierre-Yves Ricau | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
| // use this file except in compliance with the License. You may obtain a copy of | |
| // the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
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
| - (void)downloadMultiAFN { | |
| // Basic Activity Indicator to indicate download | |
| UIActivityIndicatorView *loading = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; | |
| [loading startAnimating]; | |
| [self.imageView.superview addSubview:loading]; | |
| loading.center = self.imageView.center; | |
| // Create a request from the url, make an AFImageRequestOperation initialized with that request | |
| NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:self.picUrl]]; | |
| AFImageRequestOperation *op = [[AFImageRequestOperation alloc] initWithRequest:request]; |
OlderNewer