Skip to content

Instantly share code, notes, and snippets.

View rafnixg's full-sized avatar
:octocat:
Working from home

Rafnix Guzman rafnixg

:octocat:
Working from home
View GitHub Profile
<?php
session_start();
if(isset($_GET["logout"])){
session_destroy();
}
require_once 'google-api-php-client/src/Google/autoload.php';
$client = new Google_Client();
// Get your credentials from the console
@rafnixg
rafnixg / superlog
Created November 7, 2017 19:14 — forked from gollum23/superlog
Superlog Curso git platzi
git config --global alias.superlog "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"
@rafnixg
rafnixg / README.md
Created November 6, 2017 12:15 — forked from penguinpowernz/README.md
Making a Circle Timer with Jquery Circle Progress

Making a Circle Timer with Jquery Circle Progress

I like the jquery-circle-progress plugin but I wanted it to do circle timing because I didn't like any of the other circle timers out there.

Here is what I came up with:

  <html>
    <body>
  
@rafnixg
rafnixg / laravel-related-posts.php
Created July 13, 2017 23:15 — forked from sohelamin/laravel-related-posts.php
Related posts in Laravel
@rafnixg
rafnixg / .vimrc
Created June 8, 2017 21:20 — forked from gosukiwi/.vimrc
.vimrc
" ---------------------- USABILITY CONFIGURATION ----------------------
" Basic and pretty much needed settings to provide a solid base for
" source code editting
" don't make vim compatible with vi
set nocompatible
" turn on syntax highlighting
syntax on
" and show line numbers
@rafnixg
rafnixg / odoo-api.markdown
Created May 21, 2016 19:50 — forked from dreispt/odoo-api.markdown
Odoo API reference

Fields

from openerp import models, fields, api, _

class MyModel(models.Model):
    _name = 'mymodule.mymodel'
    # Fields are declared as class attributes:
    char = fields.Char('Char', 64)        # name, size
 text = fields.Text('Text')