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
  • 21:48 (UTC -06:00)
View GitHub Profile
@ph4un00b
ph4un00b / dev.css
Last active December 10, 2015 10:29
sticky footer + t.bootstrap + mobile solution :D
* {box-shadow: inset 0 0 10px #000000;}
.span1{background: #B9D3EE;}
.span2{background: #B9D3EE;}
.span3{background: #B9D3EE;}
.span4{background: #B9D3EE;}
.span5{background: #B9D3EE;}
.span6{background: #B9D3EE;}
.span7{background: #B9D3EE;}
.span8{background: #B9D3EE;}
.span9{background: #B9D3EE;}
@ph4un00b
ph4un00b / preferencias.sublime-settings
Last active December 10, 2015 10:58
mis weas de sublime text 2
### sb3
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/the/dir
{
"traslate_tabs_to_spaces": true,
"auto_indent": true,
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Theme - Flatland/Flatland Dark.tmTheme",
"detect_indentation": true,
@ph4un00b
ph4un00b / enlaces.txt
Created January 3, 2013 16:34
enlaces y más enlaces
draw apps
http://appadvice.com/appguides/show/drawing-with-your-ipad
alias tu='top -o cpu' #cpu
alias tm='top -o vsize' #memory
alias ..="cd .."
alias ....="cd ../.."
alias hm="cd ~"
alias c="cd"
alias t="tree"
######## directorios ########
alias desk="cd ~/Desktop"
@ph4un00b
ph4un00b / searching.php
Last active December 14, 2015 23:09
orm laravel snippets
// encontrar datos, cruzarlos con otra tabla y atualizar
// todo: esto se puede hacer mejor, pero por lo mientras...
$rows1 = DB::table("nombre_tabla1")
->where("nombre_campo_tabla1", "=", "string_buscado")
->get();
foreach ($rows1 as $row1) {
// echo $row1->nombre_campo . "<br>";
  • enable "https" on client - it's free!
  • https on server - it's cheap
  • do not store passwords - get out of the password bussines

##Get more downloads

  • there is 1.5M apps
  • 80% fail to support their bussines
  • 59% can't cover the develoment cost
  1. research what people are paying for
  2. build
@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)
@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 / 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 / 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 / {