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 initAjax() { | |
| var objXml = false; | |
| if(window.XMLHttpRequest) { | |
| objXml = new XMLHttpRequest(); // All modern browsers | |
| } else if(window.ActiveXObject) { | |
| try { | |
| objXml = new ActiveXObject("Msxml2.XMLHTTP"); // Internet Explorer 6 | |
| } catch(e) { | |
| try { | |
| objXml = new ActiveXObject("Microsoft.XMLHTTP"); // Internet Explorer 5 |
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
| org 7C00h | |
| mov ax, 1000h | |
| mov ss, ax | |
| mov sp, 0 ; Points to the top of the stack | |
| mov ax, cs | |
| mov ds, ax | |
| mov ah, 02h ; Read sub function | |
| mov al, 1 ; Number of sectors to read |
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
| // Maneira nerd de apresentar letras das músicas derivadas de "Oração - A Banda Mais Bonita da Cidade" | |
| var letra = "Meus aluuuuunos,<br />Não existe oração<br />Pra salvar o seu notão<br />Programação não é tão simples quanto pensa<br />Ela sabe, ou não se sabe, se convença<br />Pare com o clamor!<br />Pare com a brincadeira<br />E suporte a canseira<br />Ou a nota é dois<br />Pare com o clamor,<br />Não existe oração, pra salvar o seu notão….<br /><br />"; | |
| var i = 1; | |
| while(i=1) { | |
| $("#musica").append("<center>" + letra + "</center>"); | |
| } |
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 textCounter(field, cntField, maxLimit) { | |
| cntField.innerHTML = maxLimit - field.value.length; | |
| if (field.value.length > 120) { | |
| $("#label").css("color", "#ff0034"); | |
| } else if (field.value.length > 100) { | |
| $("#label").css("color", "#ff6025"); | |
| } else { | |
| $("#label").css("color", "#3e3e3e"); | |
| } |
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>NativeControls Example</title> | |
| <!-- PhoneGap Stuff --> | |
| <script src="phonegap-1.0.0.js" type="text/javascript" charset="utf-8"></script> | |
| <script src="NativeControls.js" type="text/javascript" charset="utf-8"></script> | |
| <!-- /PhoneGap Stuff --> |
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 arrowInTheKnee(reason) { | |
| return "I used to " + reason + ", but then I took an arrow in the knee"; | |
| } |
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
| var basketx = 0; | |
| var basket = 4; | |
| var t; | |
| function loaded() { | |
| document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false); | |
| var s = (window.innerWidth / 2) - (128 / 2); | |
| t = self.setInterval("moveBasket('" + s + "')", 10); | |
| } |
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
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Martin Kleppe <http://twitter.com/aemkei> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
| #define _LEGACY_HEADERS | |
| #include <pic.h> | |
| #include <pic12f629.h> | |
| __CONFIG(UNPROTECT & BORDIS & MCLRDIS & PWRTEN & WDTDIS & INTIO); | |
| void delay(char value); | |
| void d1(); |
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("dart:io"); | |
| #import("Target.dart"); | |
| void main() { | |
| var Target = new Target(); | |
| File script = new File(new Options().script); | |
| script.directory((Directory d) { | |
| Target.createServer(d.path + "/public", 8800); |