-
hubot image me
query
- The Original. Queries Google Images forquery
and returns a random top result. -
hubot animate me
query
- The same thing asimage me
, except adds a few parameters to try to return an animated GIF instead. -
hubot mustache me
url
- Adds a mustache to the specified URL. -
hubot mustache me
query
- Searches Google Images for the specified query and mustaches it. -
hubot map me
query
- Returns a map view of the area returned byquery
. -
hubot math me
expression
- Calculate the given expression. -
hubot convert me
expression
tounits
- Convert expression to given units.
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
source :rubygems | |
gem "rake" | |
gem 'motion-logger' #cocoalumberjack wrapper |
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
In order for this to work you need ffmpeg. I tried with version 1.2.1. | |
1) Play the video you want to download in the browser | |
2) Inspect the video element on the page | |
3) Copy the video url from the page source (something like http://devstreaming.apple.com/videos/wwdc/2013/.../101/ref.mov) | |
4) In this url replace "ref.mov" with "iphone_c.m3u8" (for 960x540 resolution) or "atp.m3u8" if you want more (probably 720p?) | |
5) Execute `ffmpeg -y -i http://devstreaming.apple.com/videos/wwdc/2013/.../101/iphone_c.m3u8 output.mp4` | |
6) There is your video :) |
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
class AppDelegate | |
def application(application, didFinishLaunchingWithOptions:launchOptions) | |
# ... | |
navigation_appearance | |
#... | |
end | |
def navigation_appearance | |
# Background Color |
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
class MyCustomCell < UITableViewCell | |
# This method is used by ProMotion to instantiate cells. | |
def initWithStyle(style_name, reuseIdentifier: reuseIdentifier) | |
super | |
stylish | |
self | |
end | |
# A delegate method when the user clicks the Row(it's blue by default) |
Obviously, the simplest solution would be for the client to share their account details or add us as ‘team admin’, but that is not what this is about.
- [Add us to your iOS Developer Program as ‘team member’.][1]
- [Create a ‘Distribution Certificate’, if you haven’t got one already.][2]
- [Create a ‘App Store Distribution Provisioning Profile’.][3]
- [Export the ‘Distribution Certificate’ assets and send the export and password to us.][4] (For security sake, it’s a good idea to send us the password via other means than the exported certificate. E.g. by phone/SMS.)
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
#pragma mark - Embed Video | |
- (UIWebView *)embedVideoYoutubeWithURL:(NSString *)urlString andFrame:(CGRect)frame { | |
NSString *videoID = [self extractYoutubeVideoID:urlString]; | |
NSString *embedHTML = @"\ | |
<html><head>\ | |
<style type=\"text/css\">\ | |
body {\ | |
background-color: transparent;\ |
List moved
Please use https://github.com/bf4/learning to fork and pull changes.
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
class HorizontalPanGestureRecognizer < UIPanGestureRecognizer | |
DirectionPanThreshold = 4 | |
def initWithTarget(target, action: action) | |
super.tap do | |
my_reset | |
end | |
end | |
def touchesMoved(touches, withEvent:event) |