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
| #!/bin/bash | |
| function actual_path() { | |
| if [ [ -z "$1" ] -a [ -d $1 ] ]; then | |
| echo $(cd $1 && test `pwd` = `pwd -P`) | |
| return 0 | |
| else | |
| return 1 | |
| fi | |
| } |
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
| /* if portrait mode is detected, rotate the entire site -90 degrees to hint rotating to landscape */ | |
| @media (orientation: portrait) { | |
| body { | |
| -webkit-transform: rotate(-90deg); | |
| -moz-transform: rotate(-90deg); | |
| -o-transform: rotate(-90deg); | |
| -ms-transform: rotate(-90deg); | |
| transform: rotate(-90deg); | |
| } | |
| } |
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
| /** | |
| * Retrieve navigation data set from either remote URL or String | |
| * @param url | |
| * @return navigation set | |
| */ | |
| public static NavigationDataSet GetNavigationDataSet(String url) { | |
| NavigationDataSet navigationDataSet = null; | |
| try | |
| { |
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)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { | |
| NSLog(@"Info: %@", info); | |
| UIImage *img = [info objectForKey:UIImagePickerControllerEditedImage]; | |
| UIImage* originalImg = [self scaleAndRotateImage:[info objectForKey:UIImagePickerControllerOriginalImage]]; | |
| /*** OPTION 1 - JUST USE THE "FULL SIZE" IMAGE FROM THE PICKER CONTROLLER ***/ | |
| // [self usePhoto:originalImg]; |
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
| """ | |
| Exports Issues from a specified repository to a CSV file | |
| Uses basic authentication (Github username + password) to retrieve Issues | |
| from a repository that username has access to. Supports Github API v3. | |
| """ | |
| import csv | |
| import requests |
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
| package com.thuytrinh.cardselectordemo; | |
| import android.os.Bundle; | |
| import android.support.v4.view.PagerAdapter; | |
| import android.support.v4.view.ViewPager; | |
| import android.support.v4.view.ViewPager.OnPageChangeListener; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.ImageView; | |
| import android.app.Activity; |
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
| #import <UIKit/UIKit.h> | |
| #define IS_IPHONE (!IS_IPAD) | |
| #define IS_IPAD (UI_USER_INTERFACE_IDIOM() != UIUserInterfaceIdiomPhone) | |
| /** | |
| Provides a few methods to determine what sort of device the application is | |
| running on. Specifically, the methods make it easy to determine what sort of | |
| iPhone resolution is available: `[[UIApplication sharedApplication] isIphone3]` | |
| */ |
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
| ######################### | |
| # .gitignore file for Xcode4 / OS X Source projects | |
| # | |
| # NB: if you are storing "built" products, this WILL NOT WORK, | |
| # and you should use a different .gitignore (or none at all) | |
| # This file is for SOURCE projects, where there are many extra | |
| # files that we want to exclude | |
| # | |
| # For updates, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
| ######################### |
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
| def command = "git --version" | |
| def proc = command.execute() | |
| proc.waitFor() | |
| println "Process exit code: ${proc.exitValue()}" | |
| println "Std Err: ${proc.err.text}" | |
| println "Std Out: ${proc.in.text}" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.