Skip to content

Instantly share code, notes, and snippets.

View uicoded's full-sized avatar

Jan uicoded

View GitHub Profile
@uicoded
uicoded / index.html
Created September 14, 2014 03:22
Inline Block Divs // source http://jsbin.com/wokik/25
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Inline Block Divs</title>
<style id="jsbin-css">
.inline {
display: inline-block;
}

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.

Variables

@uicoded
uicoded / stashwoes.md
Last active August 29, 2015 14:13 — forked from ceejbot/stashwoes.md

What I miss about github

See this Cloudup stream for visual references.

The short answer is that I miss everything. There is no comparing the two projects. Stash's feature set is a shadow of Github's.

What a project looks like on Github:

What a project looks like on Github

@uicoded
uicoded / gist:1874a1c240d84c0a0124
Created January 26, 2015 23:07
Date timezone shift
var EST = '-0500';
var hours = /([-+])(\d\d)(\d\d)/;
var parsed = hours.exec(GMT);
var h = parseInt(parsed[2]);
var m = parseInt(parsed[3]);
var nowSince1970 = Date.now();
@uicoded
uicoded / index.html
Created March 3, 2015 16:47
NG - 1.2 model test NG - 1.2 model test // source http://jsbin.com/quzah
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<meta name="description" content="NG - 1.2 model test">
<meta charset="utf-8">
<title>NG - 1.2 model test</title>
</head>
<body ng-app="demoApp">
@uicoded
uicoded / git-loglive
Last active August 29, 2015 14:16 — forked from tlberglund/git-loglive
#!/bin/bash
while :
do
clear
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $*
sleep 1
done
@uicoded
uicoded / index.html
Created April 27, 2015 21:17
Jasmine - Unit Test Promises Jasmine - Unit Test Promises // source http://jsbin.com/zulazo
<!DOCTYPE html>
<html ng-app="demoApp">
<head>
<meta charset="utf-8">
<meta name="description" content="Jasmine - Unit Test Promises">
<title>Jasmine - Unit Test Promises</title>
<!-- jasmine -->
<script src="http://cdnjs.cloudflare.com/ajax/libs/jasmine/1.3.1/jasmine.js"></script>
<!-- jasmine's html reporting code and css -->
@uicoded
uicoded / index.html
Created April 27, 2015 21:30
Jasmine - Unit Test Controller Jasmine - Unit Test Controller // source http://jsbin.com/qijeyi
<!doctype html>
<html ng-app="demoApp">
<head>
<meta charset="utf-8">
<meta name="description" content="Jasmine - Unit Test Controller">
<title>Jasmine - Unit Test Controller</title>
<!-- jasmine -->
<script src="http://cdnjs.cloudflare.com/ajax/libs/jasmine/1.3.1/jasmine.js"></script>
<!-- jasmine's html reporting code and css -->
(function() {
angular
.module('myApp')
.directive('myUiGridResize', myUiGridResizeDirective);
/* @ngInject */
function myUiGridResizeDirective(gridUtil, uiGridConstants) {
return {
restrict: 'A',
require: 'uiGrid',