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
jQuery(function($) { | |
$('form[data-async]').live('submit', function(event) { | |
var $form = $(this); | |
var $target = $($form.attr('data-target')); | |
$.ajax({ | |
type: $form.attr('method'), | |
url: $form.attr('action'), | |
data: $form.serialize(), |
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
<div class="the-return"> | |
[HTML is replaced when successful.] | |
</div> |
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
#!/usr/bin/env bash | |
# This script should be named (or symbolically linked) as git-all so that | |
# it can be run as a git command (if it is in the path). The repo location should | |
# be set in REPOLOC. Can be relative if this script is also in a repo! | |
# Standard bash stuff to get the current directory | |
unset CDPATH | |
SOURCE="${BASH_SOURCE[0]}" | |
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink | |
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" |
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 | |
find $(cygpath $APPDATA)/Roaming/MetaQuotes/Terminal/ -mindepth 2 -maxdepth 2 -name origin.txt -exec sh -c 'echo {} && cat {} && echo' \; |
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 | |
find $(cygpath $APPDATA)/MetaQuotes/Terminal/ -mindepth 2 -maxdepth 2 -name origin.txt -exec sh -c 'echo -n "ln -s "; echo -n {} | perl -pne "s,/origin.txt$,,g"; echo -n " \""; nkf -Lu {} | perl -pne "s,^.*\\\\,,g"; echo "\""' \; | sh |
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
//+------------------------------------------------------------------+ | |
//| Period_Converter_Opt.mq4| | |
//| Copyright (c)2005, MetaQuotes Software Corp. | | |
//| http://www.metaquotes.net | | |
//| Ver.1.6 Modified by micclly| | |
//| Ver.1.5 Modified by fai | | |
//| Modified by wfy05@talkforex based on Period_Converter| | |
//| http://www.talkforex.com | | |
//+------------------------------------------------------------------+ | |
#property copyright "wfy05@talkforex.com" |
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
#!/usr/bin/env bash | |
# Run this script from your '/.../intellij-location/bin' directory. | |
# Application name | |
APPLICATION=intellij-idea | |
# Application path | |
APPLICATION_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P) |
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
// XPath CheatSheet | |
// To test XPath in your Chrome Debugger: $x('/html/body') | |
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
// 0. XPath Examples. | |
// More: http://xpath.alephzarro.com/content/cheatsheet.html | |
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class |
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
sudo sed -i -r 's/(\[.+\])$/\1\nStartupWMClass=Google-chrome-stable/g' /usr/share/applications/google-chrome.desktop |
OlderNewer