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
Dojo — dojotoolkit.org/reference-guide/dojo/declare.html#dojo-declare | |
Sencha (ExtJS) — www.rogerwilco.ru/2011/04/sencha-extjs.html | |
qooxdoo — qooxdoo.org/documentation/0.7/oo_feature_summary | |
MooTools — www.phpeveryday.com/articles/MooTools-Basic-Creating-Classes-MooTools-P919.html | |
Prototype — www.prototypejs.org/learn/class-inheritance | |
AtomJS — github.com/theshock/atomjs/blob/master/Docs/Class/Class.md | |
JSClass — jsclass.jcoglan.com/classes.html | |
code.google.com/p/jsclassextend/ | |
github.com/jcoglan/js.class |
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() { | |
function navigateToUrl(url) { | |
var f = document.createElement("FORM"); | |
f.action = url; | |
var indexQM = url.indexOf("?"); | |
if (indexQM>=0) { | |
// the URL has parameters => convert them to hidden form inputs | |
var params = url.substring(indexQM+1).split("&"); | |
for (var i=0; i<params.length; i++) { |
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
1 =>Bui Hang | |
2 =>Van Anh Le | |
3 =>Margarita Alumyan | |
4 =>Nguyễn Ngọc Tráng | |
5 =>Vũ Quyên | |
6 =>Lê Thị Hồng Yến | |
7 =>Heo Bướng | |
8 =>Hong Nhung Pham | |
9 =>Giang Nguyễn | |
10 =>Le Ngoc Ha |
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
//if you need to andorse all in linkedin just go in to your profil and enter in browser console | |
setInterval(function(){document.getElementsByClassName('endorse-all-btn')[0].click()}, 5000) | |
//an leave your tab for some time |
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
public class Test { | |
private Test() { | |
System.out.println("private constructor has been called"); | |
} | |
private void test() { | |
System.out.println("private test() method has been called"); | |
} |
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 state = { | |
one: false, | |
two: false | |
}; | |
// Task | |
var parallelTaskHandler = function(){ | |
// Check for success | |
if (state.one && state.two) { | |
// Callback |
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
if (Kohana::$environment == Kohana::TESTING) | |
{ | |
Kohana::$is_cli = false; | |
} | |
else | |
{ | |
echo Request::factory() | |
->execute() | |
->send_headers() | |
->body(); |
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
class Students { | |
protected $_server = 'localhost'; | |
protected $_username = 'username'; | |
protected $_password = 'password'; | |
protected $_database_name = 'database_name'; | |
public function __construct() { | |
mysql_connect($this->_server, $this->_username, $this->_password); | |
mysql_select_db($this->_database_name); |
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
<? | |
echo testLong(10000000); | |
echo testShort(10000000); | |
echo testShort(10000000); | |
echo testLong(10000000); | |
echo testShort(100000000); | |
echo testLong(100000000); |