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
<!doctype html> | |
<html lang='en-US'> | |
<head> | |
<title >This is a website</title> | |
<meta charset='utf-8'> | |
<link rel='shortcut icon' href='favicon.ico' /> | |
<meta http-equiv='cleartype' content='on'> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<link rel='stylesheet' href='app.css' /> | |
</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
(function(){ | |
var script=document.createElement('script'); | |
script.setAttribute('src','http://cssrefresh.frebsite.nl/js/cssrefresh.js'); | |
var head=document.getElementsByTagName('head'); | |
head[0].appendChild(script); | |
})(); |
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
$('#gregbox-outer').hide(); | |
$('#gregbox-signInTab').hide(); | |
$('#gregbox-outer').siblings('div')[2].style.display = 'none'; |
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
((i, s, o, g, r, a, m) -> | |
i["GoogleAnalyticsObject"] = r | |
i[r] = i[r] or -> | |
(i[r].q = i[r].q or []).push arguments | |
i[r].l = 1 * new Date() | |
a = s.createElement(o) | |
m = s.getElementsByTagName(o)[0] |
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
var start = new Date().getTime(); | |
var str=""; | |
var mtc="CTTGATCAT"; | |
var n = " "; | |
var alr = new Array(); | |
var j = 0; | |
var url = 'https://beta.stepic.org/media/attachments/lessons/3/Vibrio_cholerae.txt'; | |
var http = require('https'); | |
var fs = require('fs'); |
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.getElementsByTagName("body")[0].innerHTML += '<canvas id=sprite ></canvas>'; | |
var items = document.getElementsByTagName("*"); | |
var c = document.getElementById("sprite"); | |
c.width = 4000; | |
c.height = 10000; | |
c.style.border = '1px solid black'; | |
var y = 0; | |
var x = 0; |
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
var head = document.getElementsByTagName("head"); | |
var node = document.createElement("script"); | |
node.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"; | |
head[0].appendChild(node); |
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
<?php | |
public function rules() | |
{ | |
return array( | |
array('roleid', 'verificarCodigo'), | |
); | |
} | |
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
public function table($array,$headers,$title){ | |
$table = ''; | |
$table .= "<table id=table class=table >\n"; | |
if($title != ''){ | |
$table .= "<caption >$title</caption>\n"; | |
} | |
$table .=" <thead><tr>\n"; | |
$r = 1; | |
if(!is_array($headers)){ | |
$headers = array_keys($array[0]); |
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
var total = 0; | |
var suma = 0; | |
$.each($("input"), function (index, value) { | |
total = total + 1 ; | |
if( $(value).val() != '' ){ | |
suma = suma + 1 ; | |
} | |
}); | |