Skip to content

Instantly share code, notes, and snippets.

View nguyenbathanh's full-sized avatar

Thanh Nguyen nguyenbathanh

View GitHub Profile
@nguyenbathanh
nguyenbathanh / config.json
Last active November 25, 2016 10:49
esformatter-jsx best configuration
{
"jsx": {
"attrsOnSameLineAsTag": false,
"maxAttrsOnTag": 1,
"firstAttributeOnSameLine": false,
"alignWithFirstAttribute": true
},
"indent": {
"value": " ",
"ArrayExpression": 1,
var Col = require('react-bootstrap/lib/Col')
var PageHeader = require('react-bootstrap/lib/PageHeader')
var React = require('react')
var Row = require('react-bootstrap/lib/Row')
var {connect} = require('react-redux')
var {reduxForm} = require('redux-form')
var DateInput = require('./DateInput')
var FormField = require('./FormField')
var LoadingButton = require('./LoadingButton')
server {
listen 80;
server_name react.dev;
root /app/react-demo;
location / {
include /etc/nginx/mime.types;
try_files $uri $uri/ /index.html;
}
}
{
"response_code": 200,
"message": null,
"data": {
"flag": true
}
}
{
"response_code": 200,
"message": null,
"data": {
"pendingEvaluations": [
"Cooor_97"
]
}
}
<ul class="nav nav-tabs left-bar" style="border-bottom:1px solid #ccc !important;background-color:#fff;">
<div class="col-xs-6"><li class="active"><a href="#1" data-toggle="tab" style=""><span class="number">0</span>jjjjjjjjjjjjjjjjjjjjjjjjjjjj</a></li></div>
<div class="col-xs-6"><li><a href="#2" data-toggle="tab" style="text-align: center;"><span class="number">0</span><br>Unassigned</a></li></div>
<div class="col-xs-6"><li><a href="#3" data-toggle="tab" style="text-align:center;"><span class="number">0</span><br>Completed</a></li></div>
</ul>
@nguyenbathanh
nguyenbathanh / gist:8b658031c519f76859e13db893c3fab2
Last active January 3, 2018 14:55
Opening Sublime Text on command line as subl on Mac OS? (one line command)
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/
@nguyenbathanh
nguyenbathanh / a.md
Created September 17, 2016 03:56 — forked from danharper/a.md
Laravel Queue Supervisor

Install Supervisor with sudo apt-get install supervisor. Ensure it's started with sudo service supervisor restart.

In /etc/supervisord/conf.d/ create a .conf file. In this example, laravel_queue.conf (contents below). Give it execute permissions: chmod +x laravel_queue.conf.

This file points at /usr/local/bin/run_queue.sh, so create that file there. Give this execute permissions, too: chmod +x run_queue.sh.

Now update Supervisor with: sudo supervisorctl reread. And start using those changes with: sudo supervisorctl update.

"4001::<iframe id="IFRID1471405554283" src="//demo.admicro.vn/kydq/newformat/index.html"
adm-info="MzMzMzMzJTdDJTdDaHR0cCUzQS8vZGFudHJpLmNvbS52biU3Q2h0dHBzJTNBLy9kZW1vLmFkbWljcm8udm4va3lkcS9uZXdmb3JtYXQvaW1hZ2VzL2ltZy02NTAtNTAwLTEuanBn"
width="650" height="500" scrolling="no" allowfullscreen="true" frameborder="0" framespacing="0"></iframe
>^^abc**0||4002::hiiiiiiiii^^abc**0"