Skip to content

Instantly share code, notes, and snippets.

View thankvn's full-sized avatar
🏠
Working from home

Thanh Nguyen thankvn

🏠
Working from home
View GitHub Profile
@thankvn
thankvn / BalsamiqMockups3crackSerialKey.css
Created November 28, 2018 08:08
Balsamiq Mockups 3 crack Serial Key
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
<input type="text" name="firstName" id="firstName" data-email="required" placeholder="Họ và tên" class="medium-input border-radius-4" style="color: rgb(112, 112, 112); background-color: rgb(255, 255, 255); border-color: rgb(153, 153, 153); font-size: 14px; font-weight: 400; font-family: 'Open Sans', sans-serif; text-transform: none; border-radius: 4px;" required >
<input type="number" name="phone" id="phone" placeholder="Số điện thoại" class="medium-input border-radius-4" required>
<input type="email" name="email" id="email" data-email="required" placeholder="Địa chỉ Email" class="medium-input border-radius-4">
<script>
// Parse the URL
function getParameterByName
@thankvn
thankvn / linkedin-auto-connect.js
Last active May 20, 2018 11:18
Simplest LinkedIn Automation Inviter
//Simple version
setInterval(() => {
$('button[data-control-name="invite"]').each((i, el) => el.click())
window.scrollTo(0, document.body.scrollHeight)
window.scrollTo(document.body.scrollHeight, 0)
window.scrollTo(0, document.body.scrollHeight)
}, 5e3)
//run it on https://www.linkedin.com/mynetwork/
@thankvn
thankvn / scroll_to_top.js
Created May 10, 2018 13:34
Scroll to top button
/* button onClick="ga('send', 'event', 'btn_scroll', 'click', 'scroll_to_top')" */
<button onclick="topFunction()" id="myBtn" title="Go to top">NHẬN ƯU ĐÃI NGAY</button>
/* CSS */
#myBtn {
display: none; /* Hidden by default */
position: fixed; /* Fixed/sticky position */
bottom: 20px; /* Place the button at the bottom of the page */
right: 30px; /* Place the button 30px from the right */
z-index: 99; /* Make sure it does not overlap */
Mã này chỉ cần cài đặt một lần trên mỗi trang web và cho phép harafunnel hiển thị các công cụ trên các trang web của bạn.
Đặt nó vào trong các thẻ <head> của mỗi trang web.
<!-- harafunnel -->
<script src="//harafunnel.com/widget/393608364019691.js" async="async"></script>
Thêm trước thẻ đóng của body
<script>
window.fbMessengerPlugins = window.fbMessengerPlugins || {
Step 1: Include the JavaScript SDK on your page once, ideally right after the opening body tag.
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.12&appId=933992986744462&autoLogAppEvents=1';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
@thankvn
thankvn / react-native.js
Created May 24, 2017 10:49
React-Native , arrow function
// Approach 1: Use React.createClass
var HelloWorld = React.createClass({
getInitialState() {
return { message: 'Hi' };
},
logMessage() {
// this magically works because React.createClass autobinds.
console.log(this.state.message);
},
@thankvn
thankvn / convertToHumanReadableDate.java
Created May 1, 2017 13:23
convertToHumanReadableDate
public static String convertToHumanReadableDate(String timestamp) {
SimpleDateFormat fmtOut = new SimpleDateFormat();
return fmtOut.format(new Date(Long.valueOf(timestamp)));
}
@thankvn
thankvn / arraylisttojsonarray.java
Created April 12, 2017 17:16
convert array list to jsonarray
public class ListItem {
private long _masterId;
private String _name;
private long _category;
public ListItem(long masterId, String name, long category) {
_masterId = masterId;
_name = name;
_category = category;
}