- http://getbem.com/faq/#why-bem
- http://cssguidelin.es/
- file:///C:/Users/HUNG/Downloads/SMACSS.pdf
- https://smacss.com/book/type-module
- https://csswizardry.com/
- http://blog.trello.com/refining-the-way-we-structure-our-css-at-trello
Our web application used Java based technology for backend stuff. Everything include static resources (img, js, css, font, ect.) will be bundled inside a single war file. This webapp is kind of slow even with localhost, and even more slow with real intenet connection. After inspecting with Chrome Dev Tool, I found that all resource request have the same cache control header
Cache-Control:no-cache, no-store, max-age=0, must-revalidate
Content-Type:application/javascript
Expires: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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
<body> | |
<ul>* | |
<li>Item: | |
<ol>* | |
<li>Point: | |
<div> | |
<ul>* | |
<li>elem1</li> | |
</ul> | |
</div> |
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
19:00:38.168 [http-nio-8088-exec-3] DEBUG c.e.o.b.c.i.MTanServiceImpl DIGITALUSER1 Entering requestMTANInternal(referenceId=3, mTANType=UserMTanObjectType.TRANCHE_REGULAR) | |
19:00:38.322 [http-nio-8088-exec-3] DEBUG c.e.t.d.i.GenericMapperDao DIGITALUSER1 findById(ExternalUserEntity,7) | |
19:00:38.325 [http-nio-8088-exec-3] DEBUG c.e.o.b.c.i.MTanServiceImpl DIGITALUSER1 Leaving requestMTANInternal(), mTANValidUntil 2017-10-02T14:01:38.300+0200 | |
19:00:38.346 [http-nio-8088-exec-3] WARN RequestCycleExtra DIGITALUSER1 ******************************** | |
19:00:38.346 [http-nio-8088-exec-3] WARN RequestCycleExtra DIGITALUSER1 Handling the following exception | |
org.apache.wicket.WicketRuntimeException: Cannot replace a component which has not been added: id='dialogContent', component=[GasTrancheSettlementOrderPanel [Component id = dialogContent]]: | |
[GasSingleTrancheDialogContainer [Component id = singleTrancheLoginPanel]] | |
at org.apache.wicket.MarkupContainer.replace(MarkupContainer.java:843) ~[wicket-core-7.3.0.jar:7.3.0] | |
at |
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
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.security.access.annotation.Secured; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
import java.util.List; | |
@RestController | |
@RequestMapping("/register") | |
public class RegisterController { |
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
Lương của guru | |
Bài viết trước "Coder Hell" bạn Thắng có đề cập đến việc "cứ làm cho tốt đi và tin tưởng là lương sẽ tăng theo", tớ xin phép được phản biện, cách làm của bạn Thắng là cách làm bị động, và thường ko mang lại kết quả như mong đợi, nhất là với những người mà xác định "làm lớn, hưởng lớn" như mình. | |
Theo mình, vấn đề lương là phải chủ động, phải là người điều khiển cuộc chơi, chứ ko thể chờ đợi hảo tâm của người khác được. Đừng bao giờ đề tương lai của mình cho người khác sắp đặt, vì xác suất cao là họ sẽ đặt mình vào chỗ lởm. | |
Tại sao lại phải chủ động? | |
Khi làm dự án thì mình và sếp là cùng 1 chiến tuyến, sống chết có nhau, nhưng khi bàn đến lương lậu thì phải xác định rằng 2 bên đang đối đầu, rằng đây là cuộc chơi Zero-sum, tức là mình được thì nó mất. Nói cách khác, sếp lại là địch thủ của mình. Có ai lại giao phó số mệnh cho kẻ thù ko? |
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
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/hungton/.oh-my-zsh" | |
export DISPLAY=127.0.0.1:0.0 | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME |