This file contains hidden or 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 CryptoJS = require('crypto-js') | |
| var request = require('request-promise') | |
| /* | |
| * npm install crypto-js request-promise request | |
| * node wx_t1t_hack.js | |
| */ | |
| // export function testEncription(msg, fullKey) { | |
| // var fullKey = fullKey.slice(0, 16) |
This file contains hidden or 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 | |
| # You must accept the Oracle Binary Code License | |
| # http://www.oracle.com/technetwork/java/javase/terms/license/index.html | |
| # usage: get_jdk.sh <rpm|tar> <jdk_version> | |
| # jdk_version: default 8 | |
| # rpm | |
| EXT="rpm" | |
| JDK_VERSION="8" |
This file contains hidden or 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
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |
This file contains hidden or 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
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
| http://maven.apache.org/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.gordondickens.sample</groupId> | |
| <artifactId>sample-parent</artifactId> | |
| <version>1.0.0</version> | |
| <packaging>pom</packaging> |
This file contains hidden or 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
| $.fn.parsley.defaults = { | |
| // basic data-api overridable properties here.. | |
| inputs: 'input, textarea, select' // Default supported inputs. | |
| , excluded: 'input[type=hidden], :disabled' // Do not validate input[type=hidden] & :disabled. | |
| , trigger: false // $.Event() that will trigger validation. eg: keyup, change.. | |
| , animate: true // fade in / fade out error messages | |
| , animateDuration: 300 // fadein/fadout ms time | |
| , focus: 'first' // 'fist'|'last'|'none' which error field would have focus first on form validation | |
| , validationMinlength: 3 // If trigger validation specified, only if value.length > validationMinlength | |
| , successClass: 'has-success' // Class name on each valid input |
This file contains hidden or 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
| window.ParsleyConfig = { | |
| errorClass: 'has-error', | |
| successClass: 'has-success', | |
| classHandler: function (ParsleyField) { | |
| return ParsleyField.$element.parents('.form-group'); | |
| }, | |
| errorsContainer: function (ParsleyField) { | |
| return ParsleyField.$element.parents('.form-group'); | |
| }, | |
| errorsWrapper: '<span class="help-block">', |