Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<link rel="shortcut icon" href="https://scontent-sit4-1.xx.fbcdn.net/hphotos-xap1/v/t1.0-9/12524336_129297190795671_6876547709073531372_n.png?oh=851f966000f4ef1ff9ce14230630c936&oe=578B1C69">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta HTTP-EQUIV="EXPIRES" CONTENT="0">
<meta HTTP-EQUIV="Content-Language" content="Id">
<meta HTTP-EQUIV="Pragma" content="no-cache">
<meta name="RESOURCE-TYPE" CONTENT="DOCUMENT">
<meta name="DISTRIBUTION" CONTENT="GLOBAL">
<meta name="AUTHOR" CONTENT="index hacker mới nhất">
javascript:
var url = $('#inputLink')[0].value;
function getURL(rawUrl){
var raw = rawUrl.split('&')[1];
var resUrl = raw.substring(4,$raw.length);
return atob(resUrl);
}
window.open(getURL(url),'_blank');
{
"version": "2.0.0",
"tasks": [
{
"taskName": "compile and run C",
"type": "shell",
"command": "g++ ${file} -o ${fileBasenameNoExtension}.out && ./${fileBasenameNoExtension}.out ",
"presentation": {
"reveal": "always",
"panel": "shared"
@gys-dev
gys-dev / nginx.conf
Created February 15, 2019 15:31 — forked from chrisallenlane/nginx.conf
This is an nginx configuration that does the following: - Implements a RESTful API using CORS between `example.com` and `api.example.com` - Uses SSL - Reverse-proxies SSL traffic from port 443 to a NodeJS application running on port 8000 Adapted from this page, with thanks to the original author: http://enable-cors.org/server_nginx.html
# Configure the reverse-proxy on port 443
server {
# general configs
keepalive_timeout 30;
listen 127.0.0.1:443 ssl;
server_name api.example.com;
# ssl configs
ssl_certificate /path/to/api.crt;
ssl_certificate_key /path/to/api.key;
@gys-dev
gys-dev / docker-compose.yml
Created February 16, 2019 10:04
LAMP Configue For Docker
# ./docker-compose.yml
version: '3'
services:
db:
image: mysql:5.7
container_name: 'db'
environment:
MYSQL_ROOT_PASSWORD: tranducy
javascript: $( document ).ready(function() { var step = 4; var chosse = 3; var ele = $('.col-sm-3 label input'); setTimeout(function(){ for(var i = 0; i < ele.length; i++){ var shit = ele[(chosse -1) + step*i]; shit.click(); } },1000); setTimeout(function(){ var text = $('textarea'); text[0].value = "Dạy dễ hiểu- trực quan"; text[1].value = "Được thực hành nhiều hơn"; },2000); setTimeout(function(){ var btn = $('#btnSubmitAnswers'); btn.click(); },3000); });
@gys-dev
gys-dev / CRUD_SP_Generation.sql
Created November 27, 2019 17:44 — forked from huobazi/CRUD_SP_Generation.sql
Generate CRUD stored procedures from tables in schema
-- #########################################################
-- Author: www.sqlbook.com
-- Copyright: (c) www.sqlbook.com. You are free to use and redistribute
-- this script as long as this comments section with the
-- author and copyright details are not altered.
-- Purpose: For a specified user defined table (or all user defined
-- tables) in the database this script generates 4 Stored
-- Procedure definitions with different Procedure name
-- suffixes:
-- 1) List all records in the table (suffix of _GetAll)
@gys-dev
gys-dev / AppNavigator.js
Created December 17, 2019 14:31
React Native  - Tab Navigation (navigators)
import React from 'react';
import { createAppContainer, createSwitchNavigator } from 'react-navigation';
import BottomTabNavigator from './BottomTabNavigator';
export default createAppContainer(
createSwitchNavigator({
Main: BottomTabNavigator
})
);
import React, { Component } from 'react'
import {View, Text} from 'react-native'
import {createBottomTabNavigator} from 'react-navigation-tabs'
import {createAppContainer} from 'react-navigation';
import {createStackNavigator} from 'react-navigation-stack';
import HomeScreen from '../screens/HomeScreen'
import DetailScreen from '../screens/DetailScreen';
import Icon from 'react-native-ionicons'
import DemoScreen from '../screens/DemoScreen'
const App = createAppContainer(
createSwitchNavigator({
Main: BottomTabNavigator
})
);
export default App;