_
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
<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
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
<!-- 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
<?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
# 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
#include <windows.h> | |
#include <stdint.h> | |
#define internal static // just internal for the file? -> translation unit | |
#define local_persist static | |
#define global_variable static // automatically initialize to 0 | |
typedef uint8_t uint8; | |
typedef uint16_t uint16; | |
typedef uint32_t uint32; |
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
var jamones = [ | |
{ | |
"id": 3, | |
"title": "serrano", | |
"location": "df", | |
"image": "http://www.hamazing.com/image/cache/data/jamon/serrano/Teruel-Jamon-Serrano-IGP-Organic-Free-Range-712x400.jpg", | |
}, | |
{ | |
"id": 4, | |
"title": "pavo", |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var jamones = [ | |
{ |