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
| <?php | |
| $id="1"; | |
| $fecha = "29/12/2002"; | |
| $cliente = "Carlitos Bala"; | |
| $para = "Ernesto Sabato"; | |
| $concepto = " ... con cariño de carlitos .. una aspiradora"; | |
| $responsable = "Carlos Flavio Jacinto Bala"; | |
| $link = "http://www.poringa.net"; | |
| // Lee la plantilla | |
| $plantilla = file_get_contents('plantilla.rtf'); |
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
| from django.db import models | |
| class Autor(models.Model): | |
| id = models.AutoField(primary_key=True) | |
| nombre = models.CharFIeld(max_length=100) | |
| class Libro(models.Model): | |
| id = models.AutoField(primary_key=True) | |
| nombre = models.CharField(max_length=100) | |
| autor = models.ForeignKey(Autor) |
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
| import MySQLdb | |
| import datetime | |
| basededatos = MySQLdb.connect(host='localhost',passwd='1234',user='root', db = 'trabajo_practico' ) | |
| cursor = basededatos.cursor() | |
| nombre = raw_input ("Ingrese nombre: ") | |
| responsable = raw_input ("Ingrese nombre del responsable: ") | |
| fecha_inicio= input ("Ingrese fecha (fomarto y-m-d):") | |
| estado= raw_input("Ingrese el estado: ") |
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
| #!/usr/bin/env python3 | |
| # Peter Simonyi 1 June 2012 | |
| '''A binary clock: prints the current time (HHMMSS) in binary-coded decimal. | |
| Each BCD digit takes one column; least-significant bits are at the bottom. | |
| Example: at 21:14:59 (local time): | |
| 000001 | |
| 000110 | |
| 100000 | |
| 011011 |
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> | |
| <html> | |
| <head> | |
| <title>Demo 1 - Menucool Image Slider</title> | |
| <link href="themes/1/js-image-slider.css" rel="stylesheet" type="text/css" /> | |
| <script src="themes/1/js-image-slider.js" type="text/javascript"></script> | |
| <link href="generic.css" rel="stylesheet" type="text/css" /> | |
| </head> | |
| <body> | |
| <div class="div1"><h2>Demo 1 - Menucool Image Slider</h2> |
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
| #!/bin/sh | |
| # make sure requirements.txt is up to date with every commit | |
| # by comparing the output of pip freeze | |
| source [virtualenv_path]/bin/activate | |
| pip freeze | diff requirements.txt - > /dev/null | |
| if [ $? != 0 ] | |
| then | |
| echo "Missing python module dependencies in requirements.txt. Run 'pip freeze > requirements.txt' to update." | |
| deactivate |
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
| (function () { | |
| var dateTimeController = function ($scope, $rootScope) { | |
| $scope.vm = { | |
| message: "Bootstrap DateTimePicker Directive", | |
| dateTime: {} | |
| }; | |
| $scope.$watch('change', function(){ | |
| console.log($scope.vm.dateTime); | |
| }); |
OlderNewer