Skip to content

Instantly share code, notes, and snippets.

View angelbotto's full-sized avatar
🏃

Angel Celis Botto angelbotto

🏃
View GitHub Profile
@angelbotto
angelbotto / about.liquid
Last active December 30, 2015 18:29
Zoomy theme for landmoda newbies model's
<br>
<div class="content">
<div class="container">
<div class="about">
<div class="row">
<div class="span6">
<div class="about_image">
<img src="http://s3.landmoda.com/multimedia/{{ model.identificator }}/book/{{ book.multimedias.first.name }}" alt="">
</div>
</div>
@angelbotto
angelbotto / about.liquid
Created December 9, 2013 04:32
Getsimple minimalist theme for newbiews model's
<div id="bio">
<p><strong>{{ model.name }}</strong></p>
<br>
<div class="content">
{{ model.aboutme }}
</div>
</div>
# NOTICE: to get Nginx+Unicorn best-practices configuration see the gist https://gist.github.com/3052776
$ cd /usr/src
$ wget http://nginx.org/download/nginx-1.2.1.tar.gz
$ tar xzvf ./nginx-1.2.1.tar.gz && rm -f ./nginx-1.2.1.tar.gz
$ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz
$ tar xzvf pcre-8.30.tar.gz && rm -f ./pcre-8.30.tar.gz
$ wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
@angelbotto
angelbotto / nginx.conf
Created December 13, 2013 12:15
perfect nginx.conf for padrino :)
#user nobody;
worker_processes 2;
worker_priority -5;
error_log /var/www/landmoda/log/nginx.error.log crit;
events {
# use epoll;
worker_connections 1024;
}
@angelbotto
angelbotto / convert
Created January 2, 2014 21:09
less to scss
1. replace @ with $
Find: @
Replace: $
2. replace mixins
Find: \.([\w\-]*)\s*\((.*)\)\s*\{
Replace: @mixin \1\(\2\)\n{
3. replace includes
Find: \.([\w\-]*\(.*\)\s*;)
@angelbotto
angelbotto / templateangular.rb
Created February 1, 2014 20:33
Template angular kreattiewe team
# Template for an AngularJS app. It uses bower to manage your frontend resources.
opts = options.dup
opts.delete :template
project opts.merge(renderer: :erb), stylesheet: :scss, orm: :mongoid
# Default routes
APP_INIT = <<-APP
get :index do
@title = 'Index'
@ng_app = "app"
// Generated on 2014-02-02 using generator-angular 0.7.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" ng-app="pc-dashboard"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>PrepagosColombia - Dashboard</title>
<base href="/">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
@angelbotto
angelbotto / call_rake.rb
Created April 21, 2014 21:45
ejecute task in controllers, for more speed
def call_rake(task, options = {})
options[:padrino_env] ||= Padrino.env
args = options.map { |name,value| "#{name.to_s.upcase}='#{value}'" }
system "rake #{task} #{args.join(' ')} --trace 2>&1 >> #{Padrino.root}/log/rake.log &"
end
@angelbotto
angelbotto / facebook
Created May 23, 2014 06:11
get facebook likes comments, share and another data from url
https://api.facebook.com/method/fql.query?query=select%20total_count,like_count,comment_count,share_count,click_count%20from%20link_stat%20where%20url=%27http://www.angelbotto.net/%27&format=json