This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace HelloWorld | |
{ | |
class Program | |
{ |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace HelloWorld | |
{ | |
class Program | |
{ |
This file contains 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
<%-- | |
Document : index | |
Created on : Apr 22, 2015, 12:58:57 PM | |
Author : rurtubiac | |
--%> | |
<%@page contentType="text/html" pageEncoding="UTF-8"%> | |
<!DOCTYPE html> | |
<html> | |
<head> |
This file contains 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
//Creates connection | |
//@"Server=[local computer]" | |
//Integrated Security=yes, means Windows Authentication | |
//Database=[database name]" | |
SqlConnection miConexion = new SqlConnection( | |
@"Server=AE-PC\SQLEXPRESS; | |
Integrated Security=yes; | |
Database=clientes"); |
This file contains 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
--Syntax for MySQL: | |
--Keyword: AUTO_INCREMENT | |
CREATE TABLE Persons | |
( | |
ID INT NOT NULL AUTO_INCREMENT, | |
LastName VARCHAR(255) NOT NULL, | |
FirstName VARCHAR(255), | |
Address VARCHAR(255), | |
City VARCHAR(255), |
This file contains 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
using iTextSharp.text; | |
using iTextSharp.text.pdf; | |
using System.IO; | |
private void printButton_Click(object sender, EventArgs e) | |
{ | |
Document doc = new Document(iTextSharp.text.PageSize.LETTER, 10, 10, 10, 10); | |
PdfWriter writer = PdfWriter.GetInstance(doc, new FileStream("report.pdf", FileMode.Create)); | |
doc.Open(); //opens document to write |
This file contains 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
--The SELECT statement is used to select data from a database. | |
--SQL SELECT Syntax: | |
SELECT column_name,column_name | |
FROM table_name; | |
--or: | |
SELECT * FROM table_name; |
This file contains 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
<%-- | |
Document : index | |
Created on : Apr 23, 2015, 5:08:04 PM | |
Author : rurtubiac | |
--%> | |
<%@page import="figurasgeometricas.entities.Circle"%> | |
<%@page import="figurasgeometricas.entities.Rectangle"%> | |
<%@page contentType="text/html" pageEncoding="UTF-8"%> | |
<!DOCTYPE html> |
This file contains 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
private void jMenuItemExitActionPerformed(java.awt.event.ActionEvent evt) { | |
this.dispose(); | |
} |
OlderNewer