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
// works on https://football.fantasysports.yahoo.com/f1/483108/1/editwaivers pages | |
YUI().use('sortable', function (Y) { | |
var sortable; | |
// Our sortable list instance. | |
sortable = new Y.Sortable({ | |
container: '.Table tbody', | |
nodes : 'tr', | |
opacity : '0.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
import re | |
import subprocess # nosec | |
from typing import Callable, List | |
def uniq(arr: List[str]): | |
d = {} | |
for item in arr: | |
d[f"{item[0]}:{item[1]}"] = item[2] |
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
brew install php-code-sniffer | |
composer global require wp-coding-standards/wpcs | |
phpcs --config-set installed_paths ~/.composer/vendor/wp-coding-standards/wpcs/ |
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('#authors li').each(function(index) { | |
var user = jQuery(this).find('strong').text(); | |
var re = /^(.*)\s\(([\w\s]*)\)/; | |
var match = user.match(re); | |
var name = match[1]; | |
var username = match[2]; | |
console.log('user: ' + user); | |
var usermap = jQuery(this).find('select'); | |
var select_username = jQuery(usermap).find('option:contains("' + username + '")').attr('selected', true); | |
if ( select_username.length == 0 ) { |
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
(* | |
* Finder Open iTerm Here - v1.0.2 - 4/14/2011 | |
* http://benalman.com/ | |
* | |
* Copyright (c) 2011 "Cowboy" Ben Alman | |
* Dual licensed under the MIT and GPL licenses. | |
* http://benalman.com/about/license/ | |
*) | |
tell application "Finder" |