Skip to content

Instantly share code, notes, and snippets.

package com.fmpwizard.xyz.code
package lib
package search
import net.liftweb.common.{Loggable, Full, Box, Logger}
import com.twitter.finagle.ServiceFactory
import org.jboss.netty.handler.codec.http._
import com.twitter.finagle.builder.ClientBuilder
import com.twitter.finagle.http.Http
@hectorgool
hectorgool / app.js
Last active August 29, 2015 14:06
AngularJs - Changing Views with Routes
(function(){
'use strict';
var app, dependencies;
dependencies = ['ngResource', 'ngRoute','myApp.services','myApp.controllers'];
app = angular.module('myApp', dependencies);
app.config( function( $routeProvider ){
@hectorgool
hectorgool / controller.js
Created September 12, 2014 13:43
AngularJs - Controller Template
function MyController($scope, $resource) {
}
MyController.$inject = ['$scope', '$resource'];
myAppModule.controller('MyController', ['$scope','$resource', function($scope, $resource) {
}]);
@hectorgool
hectorgool / template.html
Last active August 29, 2015 14:06
Bootstrap Tempalte
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
@hectorgool
hectorgool / admin_template.html
Last active August 29, 2015 14:06
Admin Panel
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Panel de Administración</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<body>
@hectorgool
hectorgool / galleria.html
Created September 23, 2014 17:04
galleria example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>galleria.io</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
@hectorgool
hectorgool / reporte.pl
Created October 3, 2014 17:49
MondoDB reporte anual
#!/usr/local/bin/perl
use utf8;
use MongoDB;
use MongoDB::OID;
my %meses = (
'01'=>'Enero',
'02'=>'Febrero',
'03'=>'Marzo',
@hectorgool
hectorgool / PostSnip.scala
Last active August 29, 2015 14:11
Snippet Scala Lift
package code
package snippet
import net.liftweb._
import common._
import common.Full
import http._
import http.RequestVar
import http.S._
@hectorgool
hectorgool / read_google_doc.py
Created February 18, 2015 21:24
Lee 2 columas de un google doc
import gspread
# Login with your Google account
gc = gspread.login('', '')
#You can open a spreadsheet by its title as it appears in Google Docs
sh = gc.open("Santix Loc") # <-- Look ma, no keys!
# By title
worksheet = sh.worksheet("Locs")
@hectorgool
hectorgool / UserPost.scala
Created March 19, 2015 12:44
Building a dynamic menu structure (Advanced)
package code.snippet
import net.liftweb.sitemap.Menu
import net.liftweb.util.Helpers._
import net.liftweb.common._
import code.model.User
import net.liftweb.sitemap._
import scala.xml.Text
import net.liftweb.sitemap.Loc.LocGroup
import code.model.UserPost