You can make your own HD animated GIF generator.
Follow along with these commands to get started.
git clone git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg| function getNbs(i,j, board){ | |
| let coords = [] | |
| for (let ii = i-1; ii<= i+1; ii++){ | |
| for (let jj = j-1; jj<= j+1; jj++){ | |
| const inbound = ii >= 0 && ii < board.length && jj >= 0 && jj < board[0].length | |
| if (inbound){ | |
| coords.push([ii, jj]) | |
| } |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| // @author: @BenNadel | |
| // Source : http://www.bennadel.com/blog/2592-hooking-into-the-complete-event-of-an-ngrepeat-loop-in-angularjs.htm | |
| angular.module('app') | |
| .directive("repeatComplete", | |
| function( $rootScope ) { | |
| // Because we can have multiple ng-repeat directives in | |
| // the same container, we need a way to differentiate | |
| // the different sets of elements. We'll add a unique ID | |
| // to each set. | |
| var uuid = 0; |
| .config(function($provide) { | |
| $provide.decorator("$rootScope", function($delegate) { | |
| var Scope = $delegate.constructor; | |
| var origBroadcast = Scope.prototype.$broadcast; | |
| var origEmit = Scope.prototype.$emit; | |
| Scope.prototype.$broadcast = function($scope) { | |
| console.log("$broadcast was called on $scope " + $scope.$id + " with arguments:", | |
| arguments); | |
| return origBroadcast.apply(this, arguments); |
| git clone [email protected]:supertinou/livequiz.git && cd livequiz && git reset --hard SAMPLE-QUIZ-APP |
| @ResultsDisplay = React.createClass | |
| render: -> | |
| <div className="list-group-item"> | |
| <div className="row"> | |
| <div className="col-md-2"> | |
| <img className='media-object' src="/images/graduated.png" /> | |
| </div> | |
| <div className="col-md-9"> | |
| <h1>The quiz session is finished</h1> | |
| <h3>Here are the results:</h3> |
| @SuccessNotifier = React.createClass | |
| render: -> | |
| [image, text] = if this.props.success | |
| ['/images/correct.png','Well done !'] | |
| else | |
| ['/images/wrong.png', 'Wrong answer !'] | |
| <div className="list-group-item"> | |
| <div className="row"> | |
| <div className="col-md-2"> |