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
  • 00:59 (UTC -06:00)
View GitHub Profile
@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 / 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
angular.module("question_approval.directives")
.directive('questionFormModal', function() {
return {
restrict: "E",
replace: true,
templateUrl: 'question_approval/question_form_modal.html'
}
})
.directive('contributorDashboardContainer', function() {
<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">
@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));
@ph4un00b
ph4un00b / api.md
Created October 29, 2013 06:26
opengl

_

@ph4un00b
ph4un00b / nginx.json
Created October 6, 2013 21:30
web service php/laravel project process
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 / {
@ph4un00b
ph4un00b / 0_reuse_code.js
Created October 6, 2013 21:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ph4un00b
ph4un00b / window.cpp
Last active December 22, 2015 08:38
openGL / mac / 2.1 / glfw
// 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>
@ph4un00b
ph4un00b / gist:6063949
Last active December 20, 2015 03:29
init
-sublime
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation')
-zsh
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
-git
git config --global color.ui auto
-brew(mac)