This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="bio"> | |
| <p><strong>{{ model.name }}</strong></p> | |
| <br> | |
| <div class="content"> | |
| {{ model.aboutme }} | |
| </div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #user nobody; | |
| worker_processes 2; | |
| worker_priority -5; | |
| error_log /var/www/landmoda/log/nginx.error.log crit; | |
| events { | |
| # use epoll; | |
| worker_connections 1024; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. replace @ with $ | |
| Find: @ | |
| Replace: $ | |
| 2. replace mixins | |
| Find: \.([\w\-]*)\s*\((.*)\)\s*\{ | |
| Replace: @mixin \1\(\2\)\n{ | |
| 3. replace includes | |
| Find: \.([\w\-]*\(.*\)\s*;) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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 --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |