- Community
- Utility
- gulp-debug: Debug vinyl file streams to see what files are run through your gulp pipeline
- gulp-count: count files in vinyl stream
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
void swap(int &b, int &b) { | |
int t = a; a = b; b = t; | |
} | |
int main() { | |
int x = 1, y = 2; | |
swap(x, y); // <=== Cái này là gọi hàm, học kiêu gì trời ơ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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
/** | |
* | |
* @author duyetdev | |
*/ |
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
Connection con = DBConnect.getConnecttion(); | |
String sql = "insert into category value(?,?,?)"; | |
PreparedStatement ps; | |
try { | |
ps = (PreparedStatement) con.prepareStatement(sql); | |
ps.setInt(1, 0); | |
ps.setString(2, "Abc"); | |
ps.setString(3, "Def"); | |
ps.executeUpdate(); | |
con.close(); |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDR9FdvYr2HWK0kAyNYBAHsMBMdRqjB5H9h3IrBVnPo3g2WVDQw8ntXxuda8mz/X0GR/yayGaK041s3qgxNfTZ5mgNJzz///hyOYOSXuU8QPdNJePNwnzuKBYeaoEC9XSR/V9g8ucnbTxeM+QEZp+DOwzAe9eNM6GdSrvVQELfEEXie17kjFXDpvepBaPVacXvlvsoEMuVSUUNsu+x1FUfKvQ6XfZlR8clBie5YeuxEvK7LuBxGeoC07q0t08LGjFLJhs8OIUjnab6hGSefcfEKfqwohrS2O1rJaMqB4lWkq016lGhN/DwvgwlZvoQccllEOQwXw8eofU5815G1MJA5 duyetdev@duyetdev |
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
UPDATE is_options SET option_value = REPLACE(option_value,'http://localhost/isweb','http://is.duyetdev.com'); | |
UPDATE is_options SET option_value = REPLACE(option_value,'/var/www/html/isweb/wp-content','/var/www/html/wp-content'); | |
UPDATE is_posts SET guid = REPLACE(guid,'http://localhost/isweb','http://is.duyetdev.com'); | |
UPDATE is_revslider_slides SET layers = REPLACE(layers,'localhost\\/isweb','is.duyetdev.com'); | |
UPDATE is_revslider_slides SET params = REPLACE(params,'localhost\\/isweb','is.duyetdev.com'); | |
UPDATE is_revslider_sliders SET params = REPLACE(params,'localhost\\/isweb','is.duyetdev.com'); |
- node.js
- Installation paths: use one of these techniques to install node and npm without having to sudo.
- Node.js HOWTO: Install Node+NPM as user (not root) under Unix OSes
- Felix's Node.js Guide
- Creating a REST API using Node.js, Express, and MongoDB
- Node Cellar Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB
- JavaScript Event Loop
- Node.js for PHP programmers
This is my upload-file
type for what I use at work. We use angular-upload for the upload
service to do the actual file uploading. We also have several abstractions and use ES6 that may confuse you a little bit (sorry about that). Hopefully this gets you started though.
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
SELECT | |
t1.id as level_1, | |
t4.level_2, | |
t4.level_3 | |
FROM | |
`categories` t1 | |
LEFT JOIN ( | |
SELECT | |
t2.id as level_2, |