Skip to content

Instantly share code, notes, and snippets.

FROM ubuntu:14.04
RUN mkdir /usr/microblaze
RUN mkdir /usr/microblaze/src
RUN mkdir /usr/microblaze/tmp
RUN mkdir /usr/microblaze/tmp/binutils-build
RUN mkdir /usr/microblaze/tmp/gcc-build
RUN apt-get update -y
RUN apt-get install -y wget
@phonyphonecall
phonyphonecall / emojis_sorted
Last active August 29, 2015 14:16
A list of all of the [emoji's](http://www.emoji-cheat-sheet.com/) for all of your visually expressive needs :shipit:
:+1:
:-1:
:100:
:1234:
:8ball:
:a:
:ab:
:abc:
:abcd:
:accept:
@mbenford
mbenford / autosize.js
Created December 18, 2013 03:47
Autosize directive for AngularJS. Resizes an input field automatically so its content is always visible. http://plnkr.co/edit/iodg4SqKBXL0V6ZJmRue
app.directive('autosize', function($document) {
return {
require: 'ngModel',
link: function(scope, element, attrs, ctrl) {
var placeholder, span, resize;
placeholder = element.attr('placeholder') || '';
span = angular.element('<span></span>');
span[0].style.cssText = getComputedStyle(element[0]).cssText;
@asafge
asafge / ng-really.js
Created November 12, 2013 13:06
ng-really? An AngularJS directive that creates a confirmation dialog for an action.
/**
* A generic confirmation for risky actions.
* Usage: Add attributes: ng-really-message="Are you sure"? ng-really-click="takeAction()" function
*/
angular.module('app').directive('ngReallyClick', [function() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
element.bind('click', function() {
var message = attrs.ngReallyMessage;