Table of Contents generated with DocToc
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
# It can be better | |
# fake it when you take it | |
# turn off your wifi | |
# build for everyone | |
# do less, be lazy |
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 | |
class Button | |
{ | |
public $text; | |
public $icon; | |
public $type; | |
public $link; | |
function __construct($text, $icon, $type, $link){ |
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 parsePage( res ){ | |
var $html = $(res); | |
var ul = $html.find('.mt30.recipe_box_list.recipe_box_list_all'); | |
var lis = ul.children(); | |
var mon = $.map(lis, function( li ){ | |
var $li = $(li); | |
return { | |
url: 'http://www.amthuc365.vn/' + $li.find('a').first().attr('href'), | |
name: $li.find('a').first().attr('title'), | |
img: $li.find('a img').first().attr('src') |
This file has been truncated, but you can view the full file.
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
[{ | |
"url": "http://www.amthuc365.vn//cong-thuc/4371-thit-trau-xao-rau-muong.html", | |
"name": "Thịt trâu xào rau muống", | |
"img": "http://gl.amthuc365.vn/thumbnails/221/165///uploads/i/Cong_Thuc/2016/T5/1463542014-thit-trau-xao-rau-muong-dspl3.jpg" | |
}, { | |
"url": "http://www.amthuc365.vn//cong-thuc/4370-banh-gao-cay-tokbokki.html", | |
"name": "Bánh gạo cay tokbokki", | |
"img": "http://gl.amthuc365.vn/thumbnails/221/165///uploads/i/Cong_Thuc/2016/T5/huong-dan-cach-lam-banh-gao-cay-han-quoc-tokbokki-ngon-don-gian-1.jpg" | |
}, { | |
"url": "http://www.amthuc365.vn//cong-thuc/4369-ca-thu-sot-dua-chua.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
Array.prototype.mergeMap = function(arr, field){ | |
var arr1 = this, arr2 = arr; | |
return arr1.map( function ( el1 ) { | |
var sameEl = arr2.find( function( el2 ){ | |
return el2[field] == el1[field]; | |
}); | |
return Object.assign({}, el1, sameEl); | |
}) | |
}; |
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 changeAlias( alias ) { | |
if( !alias instanceof String ) return ""; | |
return alias | |
.replace(/À|Á|Ạ|Ả|Ã|Â|Ầ|Ấ|Ậ|Ẩ|Ẫ|Ă|Ằ|Ắ|Ặ|Ẳ|Ẵ/g, "A") | |
.replace(/È|É|Ẹ|Ẻ|Ẽ|Ê|Ề|Ế|Ệ|Ể|Ễ/g, "E") | |
.replace(/Ì|Í|Ị|Ỉ|Ĩ/g, "I") | |
.replace(/Ò|Ó|Ọ|Ỏ|Õ|Ô|Ồ|Ố|Ộ|Ổ|Ỗ|Ơ|Ờ|Ớ|Ợ|Ở|Ỡ/g, "O") | |
.replace(/Ù|Ú|Ụ|Ủ|Ũ|Ư|Ừ|Ứ|Ự|Ử|Ữ/g, "U") | |
.replace(/Ỳ|Ý|Ỵ|Ỷ|Ỹ/g, "Y") | |
.replace(/Đ/g, "D") |
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 | |
// tot nhat nen láy ra từ db, them vai bang de lưu cac tieu chí va cách danh gia | |
private map_chu_de_from_diem = array( | |
'tong_hoc_tap' => array( | |
'tong_hoc_tap' | |
), | |
'tru_hoc_luc_yeu' => array( | |
'tru_hoc_luc_yeu' | |
) | |
); |
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 (Phaser, spilgameads) { | |
if( !Phaser || !spilgameads){ | |
console.warn("HHAdsPlugin require Phaser and spilgameads."); | |
} | |
var HHAdsPlugin = function (game, parent, option) { | |
Phaser.Plugin.call(this, game, parent); | |
this.events = new Phaser.Signal(); | |
}; |
OlderNewer