Skip to content

Instantly share code, notes, and snippets.

@markcarrrr
markcarrrr / Git Commands.md
Last active October 19, 2020 10:51
It's fine remembering the common day-to-day commands but here's a list of commands I use as a reference for the lesser used commands.

GIT Commands

Shallow clone

git clone --depth 1 [REPO_PATH]

Unshallow repo

git fetch --unshallow

Checkout a branch/all branches after shallow clone

git remote set-branches origin [SPECIFIC-BRANCH or * for all branches]

@markcarrrr
markcarrrr / Even number
Last active August 29, 2015 14:00
Even number
function isEven(value) {
if (value%2 === 0)
return true;
else
return false;
}
@markcarrrr
markcarrrr / css-triangles
Last active August 29, 2015 13:59
CSS Triangles
.triangle-up {
border-bottom: 10px solid red;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
height: 0;
width: 0;
}
.triangle-down {
@markcarrrr
markcarrrr / Primish Class
Last active August 29, 2015 13:59
primish class
/* https://github.com/DimitarChristoff/primish/ */
/* requires: [primish.js, options.js] */
/* Example... */
var App = App = {};
;(function(Class, window, document){
"use strict";
var GLOBAL_NAME = {};
;(function($, window, document){
'use strict';
var PLUGIN_NAME = this.PLUGIN_NAME = function(element, options){
this.element = $(element);
this.options = $.extend({}, this.options, options);
this.initialise();