_
This file contains hidden or 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
# remove all deleted files | |
* git ls-files --deleted -z | xargs -0 git rm | |
# compress directory | |
$ tar -zcvf project.tar.gz /the/path | |
# uncompress directory | |
$ tar -zxvf project.tar.gz |
This file contains hidden or 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 | |
use Illuminate\Auth\UserTrait; | |
use Illuminate\Auth\UserInterface; | |
use Illuminate\Auth\Reminders\RemindableTrait; | |
use Illuminate\Auth\Reminders\RemindableInterface; | |
/** | |
* Class User | |
*/ |
This file contains hidden or 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
<!-- repeat --> | |
<div ng-if="image[0].metadata.action === 'delete'"> | |
<!--<div ng-if="image[0].metadata.type === form.QUESTION">--> | |
<div ng-switch="image[0].metadata.type"> | |
<div ng-switch-when="Question"> | |
<p> | |
<img class="img-thumbnail" style="margin-bottom: 4%;" | |
src="{{form.getImageURL(form.QUESTION, image[0].metadata.index)}}" | |
width="60px" alt=""/> | |
- type: {{image[0].metadata.type}}, action: Delete Image |
This file contains hidden or 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
angular.module("question_approval.directives") | |
.directive('questionFormModal', function() { | |
return { | |
restrict: "E", | |
replace: true, | |
templateUrl: 'question_approval/question_form_modal.html' | |
} | |
}) | |
.directive('contributorDashboardContainer', function() { |
This file contains hidden or 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 ng-app="app"> | |
<head> | |
<title></title> | |
<link rel="stylesheet" type="text/css" href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.1/css/bootstrap.css"> | |
</head> | |
<body> | |
<div class="question-modal" tabindex="-10" role="dialog" aria-labelledby="Question Data" aria-hidden="true"> | |
<div class="modal-dialog modal-lg"> | |
<div ng-controller="FormController as form" class="modal-content"> | |
<button type="button" class="close" data-dismiss="modal"> |
This file contains hidden or 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
/* get some random key */ | |
$pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
dd(substr(str_shuffle(str_repeat($pool, 1)), 0, 36)); |
This file contains hidden or 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
server { | |
listen 80; | |
server_name 127.0.0.1; | |
access_log /vagrant/www/app/storage/logs/access.log; | |
error_log /vagrant/www/app/storage/logs/error.log; | |
rewrite_log on; | |
root /vagrant/www/public/; | |
index index.php; | |
location / { |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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 standard stuff | |
#include <stdio.h> | |
#include <stdlib.h> | |
// include GLEW always before gl.h && glfw.h | |
#include <GL/glew.h> | |
// windows && keyboard | |
#include <GL/glfw.h> |