This file contains 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/sh | |
[ -z $1 ] && exit 1 | |
git config --add svn-remote.$1.url svn+ssh://svnrepohost/path/to/branches/$1 | |
git config --add svn-remote.$1.fetch :refs/remotes/$1 | |
git svn fetch $1 | |
git checkout -b local-$1 -t $1 | |
git svn rebase $1 |
This file contains 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
#include <stdio.h> | |
#define rololo printf( | |
#define trololololo void | |
#define trololo ( | |
#define tro ) | |
#define lolo { | |
#define trolo char | |
#define lo * | |
#define lololo = | |
#define t "trololo trololo trololo" |
This file contains 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
<html> | |
<head> | |
<style type="text/css"> | |
#mydiv { | |
position: absolute; | |
top: 200px; | |
left: 200px; | |
width: 50px; | |
height: 50px; | |
border: 1px black solid; |
This file contains 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
# -*- coding: utf-8 -*- | |
import Image | |
def resize_and_crop(img_path, modified_path, size, crop_type='top'): | |
""" | |
Resize and crop an image to fit the specified size. | |
args: | |
img_path: path for the image to resize. |
This file contains 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
<?php | |
function findMissingCards($deck) | |
{ | |
// The order is not the actual order of the cards in the deck, but the alpha order | |
// because I didn't implement the sort method here, but used a native one | |
$colors = array('C', 'P', 'Q', 'T'); | |
$values = array(2, 3, 4, 5, 6, 7, 8, 9, 10, 'V', 'D', 'R', 'A'); | |
$missingCards = array(); |
This file contains 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/sh | |
BRANCH=$1 | |
TARGET=$2 | |
BRANCH_FIRST_COMMIT=$3 | |
# Checks | |
[ ! -d .git ] && echo "You must be in a git project" 1>&2 && exit 1 | |
[ -z "$BRANCH" ] && echo "A branch is needed" 1>&2 && exit 1 | |
[ -z "$TARGET" ] && echo "A target is needed" 1>&2 && exit 1 |
OlderNewer