http://guides.rubyonrails.org/migrations.html
- add_column
- add_index
- change_column
- change_table
- create_table
- drop_table
| \documentclass[margin]{res} | |
| \usepackage[utf8]{inputenc} | |
| \usepackage[spanish]{babel} | |
| \usepackage{graphics} | |
| \usepackage{graphicx} | |
| %\usepackage{amsmath} | |
| \usepackage{textpos} | |
| \oddsidemargin -.5in | |
| \evensidemargin -.5in |
| <?php | |
| require 'vendor/autoload.php'; | |
| use Guzzle\Http\Client; | |
| // Create a client and provide a base URL | |
| $client = new Client(); | |
| $request = $client->get('http://elearningtest.sence.cl/api/CursoApi/',array(),array( | |
| 'query' => array( | |
| 'codigoSence' => '1237485855', |
| import requests | |
| payload = {'codigoSence': '1237485855', 'rutAlumno': '16525953', 'claveAlumno': 'GF123456', 'rutOtec': '78525955', 'claveOtec': '1965ASR' ,'estadoActividad': '1'} | |
| r = requests.get('http://elearningtest.sence.cl/api/CursoApi',params=payload) | |
| print r.text |
http://guides.rubyonrails.org/migrations.html
| # autoload concerns | |
| module YourApp | |
| class Application < Rails::Application | |
| config.autoload_paths += %W( | |
| #{config.root}/app/controllers/concerns | |
| #{config.root}/app/models/concerns | |
| ) | |
| end | |
| end |
| <!DOCTYPE html> | |
| <html lang="es"> | |
| <head> | |
| <title>Dinamicos</title> | |
| <link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet"> | |
| <link href="http://cdnjs.cloudflare.com/ajax/libs/jQuery-Validation-Engine/2.6.4/validationEngine.jquery.css" rel="stylesheet"> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/jQuery-Validation-Engine/2.6.4/jquery.validationEngine.min.js"></script> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/jQuery-Validation-Engine/2.6.4/languages/jquery.validationEngine-es.js"></script> | |
| <style> |
| # Nginx+Unicorn best-practices congifuration guide. Heartbleed fixed. | |
| # We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies. | |
| # Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module | |
| # | |
| # Deployment structure | |
| # | |
| # SERVER: | |
| # /etc/init.d/nginx (1. nginx) | |
| # /home/app/public_html/app_production/current (Capistrano directory) | |
| # |
| <?php | |
| //Using composer to get the Sabre lib | |
| require dirname ( __FILE__ ) . '/../vendor/autoload.php'; | |
| use Sabre\VObject\Component\VCalendar; | |
| // Create a message | |
| $message = Swift_Message::newInstance ( 'Message Title' ) | |
| ->setFrom ( array( '[email protected] ' => 'John Doe' ) ) | |
| ->setTo ( array( $email ) ) | |
| ->setSubject ( "Cool message subject" ) |
| <?php | |
| class CalendarEvent { | |
| /** | |
| * | |
| * The event ID | |
| * @var string | |
| */ | |
| private $uid; |
| require 'ruby-nfc' | |
| require 'logger' | |
| $logger = Logger.new(STDOUT) | |
| def p(str) | |
| $logger.debug str | |
| end | |
| readers = NFC::Reader.all |