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
var gulp = require('gulp'); | |
var wiredep = require('wiredep'); | |
var browserSync = require('browser-sync'); | |
var reload = browserSync.reload; | |
var $ = require('gulp-load-plugins')(); | |
var config = { | |
sassPath: './resources/sass', | |
bowerDir: './bower_components' | |
} |
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
/** | |
* nodeJS read muti-lines datas from console. | |
* @Author kingcc | |
* @DateTime 2017-03-23T13:29:22+0800 | |
* @param {Function} cb callback | |
* @return {[type]} callback results | |
*/ | |
function readMutiLines(cb) { | |
let datas = []; | |
process.stdin.setEncoding('utf8'); |
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
/** | |
* Fill Out Forms Quickly With Hotkey | |
* | |
* Usage: | |
* 1. Modify `contentsByKey`; | |
* 2. Paste these lines into website's console ( Ctrl/Cmd + Shift + I ); | |
* 3. Focus target element which you what to fill in page, | |
* then press hot key, content will be fill in. | |
* | |
* Author: |
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
/** | |
* Replace a string with a `leet` style string | |
*/ | |
function stringToNumber(str) { | |
const dir = { | |
o: 0, | |
O: 0, | |
i: 1, | |
I: 1, | |
l: 1, |
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
#!/bin/bash | |
# This script is designed to find the latest Git commit that contains a date, | |
# and then change its commit date to a specified date. To achieve this goal, | |
# the script performs the following operations: | |
# | |
# Use the git log command to find the SHA of the latest Git commit that contains | |
# a date. | |
# Extract the date string from the commit message of the identified commit. | |
# Convert the date string to a format that Git can accept using the date command |
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
#include <amxmodx> | |
#include <cstrike> | |
#include <engine> | |
#include <fakemeta> | |
#define PLUGIN "Change Hand" | |
#define AUTHOR "kingcc" | |
#define VERSION "1.0" | |
#define CVAR_CHANGE_HAND_TOGGLE_INTERVAL "change_hand_toggle_interval" |