Skip to content

Instantly share code, notes, and snippets.

View ph4un00b's full-sized avatar
:shipit:
0.5 * (1 + srqt(5))

carbon based lifeform ph4un00b

:shipit:
0.5 * (1 + srqt(5))
  • l33t l4mer
  • Latam
  • 05:48 (UTC -06:00)
View GitHub Profile
@ph4un00b
ph4un00b / api.md
Created October 29, 2013 06:26
opengl

_

@ph4un00b
ph4un00b / in.php
Created April 28, 2014 19:58
some quickly task scripts
/* get some random key */
$pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
dd(substr(str_shuffle(str_repeat($pool, 1)), 0, 36));
<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">
angular.module("question_approval.directives")
.directive('questionFormModal', function() {
return {
restrict: "E",
replace: true,
templateUrl: 'question_approval/question_form_modal.html'
}
})
.directive('contributorDashboardContainer', function() {
@ph4un00b
ph4un00b / image-feedback.html
Last active September 18, 2015 21:21
not working image feedback -bv-
<!-- 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
@ph4un00b
ph4un00b / 1user.php
Last active September 18, 2015 21:21
illuminate-angular-test
<?php
use Illuminate\Auth\UserTrait;
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableTrait;
use Illuminate\Auth\Reminders\RemindableInterface;
/**
* Class User
*/
@ph4un00b
ph4un00b / gist:5bf3bb7b48f6f656ad66
Last active August 29, 2015 14:11
unix commads to safe my ass
# 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
#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;
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",
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script type="text/javascript">
var jamones = [
{