Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
| // | |
| // BPUUID.h | |
| // Skates | |
| // | |
| // Created by Jon Olson on 2/3/10. | |
| // Copyright 2010 Ballistic Pigeon, LLC. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |
| #import <UIKit/UIKit.h> | |
| #import <AVFoundation/AVFoundation.h> | |
| #import <CoreGraphics/CoreGraphics.h> | |
| #import <CoreVideo/CoreVideo.h> | |
| #import <CoreMedia/CoreMedia.h> | |
| /*! | |
| @class AVController | |
| @author Benjamin Loulier | |
Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
| #!/bin/sh | |
| # Just copy and paste the lines below (all at once, it won't work line by line!) | |
| # MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY! | |
| function abort { | |
| echo "$1" | |
| exit 1 | |
| } | |
| set -e |
| {% paginate collection.products by 20 %} | |
| <!-- the top of your collections.liquid --> | |
| <!-- START PRODUCTS --> | |
| {% for product in collection.products %} | |
| <!-- START PRODUCT {{ forloop.index | plus:paginate.current_offset }} --> | |
| <div class="product" id="product-{{ forloop.index | plus:paginate.current_offset }}"> | |
| {% include 'product' with product %} | |
| </div> | |
| <!-- END PRODUCT {{ forloop.index | plus:paginate.current_offset }} --> |
| .shadow-stuff { | |
| -moz-border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px; | |
| -webkit-border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px; | |
| border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px; | |
| -moz-box-shadow: rgba(0,0,0,.30) 0 2px 3px; | |
| -webkit-box-shadow: rgba(0,0,0,.30) 0 2px 3px; | |
| box-shadow: rgba(0,0,0,.30) 0 2px 3px; | |
| } | |
| .container { |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
| // clang -framework Foundation -fobjc-arc -O3 test.m | |
| #import <Foundation/Foundation.h> | |
| @interface Slice : NSObject | |
| @property NSInteger start; | |
| @property NSInteger length; | |
| @end | |
| @implementation Slice |
| // Connecting AFIncrementalStore & MagicRecord | |
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
| PDDebugger *debugger = [PDDebugger defaultInstance]; | |
| [debugger connectToURL:[NSURL URLWithString:@"ws://localhost:9000/device"]]; | |
| [debugger enableNetworkTrafficDebugging]; | |
| [debugger forwardAllNetworkTraffic]; | |
| [debugger enableCoreDataDebugging]; | |
| curl -D cookie1.txt blog.xrmplatform.org/wp-login.php | |
| # step 1 | |
| # get default cookie of blog and write cookie to cookie1.txt | |
| # step 2 | |
| # simulate browser Firefox( of course , you can use any browser agent<!--more--> what you want!) "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" | |
| # input your username and also password | |
| # write new cookie to cookie2.txt | |
| curl -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" -D cookie2.txt -b cookie1.txt -F log=username -F pwd=password -F testcookie=1 -F wp-submit="Log In" -F redirect_to=blog.xrmplatform.org/wp-admin -F submit=login -F rememberme=forever blog.xrmplatform.org/wp-login.php | |
| # currently cookie2.txt stored all cookie info |