Skip to content

Instantly share code, notes, and snippets.

fauno ofauno

  • world (CT)
Block or report user

Report or block ofauno

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View psql.txt
\? -> help
create database JAMON; -> create DB | alternative: $ createdb JAMOM
\l -> list db's
drop database JAMON; -> drop DB
\q -> exits
\c JAMON -> switch over DB
\d TABLE? -> describe DB or TABLE
create table NAME(\n column TYPE, ...); -> start modeling table
SERIAL, TEXT -> column types
insert into TABLE(column) values('value'); -> fill the table
View gist:610fcd83cc109903bcf3e9a3926d6acd
:set foldmethod=indent
:set foldlevelstart=20
:set enc=utf-8
:set relativenumber
:set number
:set autoindent
:set expandtab
:set smarttab
:set softtabstop=2
View angular-select.html
<select id='country-selection'
ng-options=" for option in vm.countries track by option.code"
name="country_selection" required>
<option disabled value="">Select visitor country (max 3)</option>
View js-map.html
<!DOCTYPE html>
<meta charset="utf-8">
<script type="text/javascript">
var jamones = [
View gist:4c7953a71b6d070a1c91
var jamones = [
"id": 3,
"title": "serrano",
"location": "df",
"image": "",
"id": 4,
"title": "pavo",
View hh.cpp
#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;
ofauno / gist:5bf3bb7b48f6f656ad66
Last active Aug 29, 2015
unix commads to safe my ass
View gist:5bf3bb7b48f6f656ad66
# 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
ofauno / 1user.php
Last active Sep 18, 2015
View 1user.php
use Illuminate\Auth\UserTrait;
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableTrait;
use Illuminate\Auth\Reminders\RemindableInterface;
* Class User
ofauno / image-feedback.html
Last active Sep 18, 2015
not working image feedback -bv-
View image-feedback.html
<!-- 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">
<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
View directivas.js
.directive('questionFormModal', function() {
return {
restrict: "E",
replace: true,
templateUrl: 'question_approval/question_form_modal.html'
.directive('contributorDashboardContainer', function() {
You can’t perform that action at this time.