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
<?php | |
/** | |
* Implements hook_help(). | |
* | |
* You can add documentation and help here (in admin/help#espn_news). This | |
* documentation can help the users use and extend you module. | |
* | |
* @url: https://api.drupal.org/api/drupal/modules!help!help.api.php/function/hook_help/7 | |
*/ |
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
<?php | |
/** | |
* Implements hook_block_info(). | |
* | |
* Declares a block to provide to Drupal. This can also specify block | |
* configuration settings, like here where the cache is determined be the | |
* user role. | |
* | |
* @url: https://api.drupal.org/api/drupal/modules!block!block.api.php/function/hook_block_info/7 |
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
name = ESPN News | |
description = Provides a block with recent ESPN sport news. | |
core = 7.x | |
package = Custom |
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
-- Stops current backup do shell script "/Applications/'Time Machine.app'/Contents/MacOS/'Time Machine' 3" -- Set disk names set wd to "WD" set timemachine to "TIMEMACHINE" -- Eject WD tell application "Finder" if disk wd exists then eject disk wd display notification "WD disk has successfully been ejected" with title "WD ejected" else display notification "WD disk was not mounted" with title "WD not mounted" end if end tell -- Eject TIMEMACHINE tell application "Finder" if disk timemachine exists then eject disk timemachine display notification "TIMEMACHINE disk has successfully been ejected" with title "TIMEMACHINE ejected" else display notification "TIMEMACHINE disk was not mounted" with title "TIMEMACHINE not mounted" end if end tell |
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 | |
# | |
# The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext | |
# which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just | |
# from time to time | |
# Usage: checkpoint.sh load|unload | |
# You will need sudo power, of course | |
# | |
COMMAND=$1 |
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
<?php | |
/** | |
* @file | |
* Markup template. | |
* This is placed in: my_module/plugins/panes/resources/ | |
*/ | |
?> | |
<div> | |
<div class="my_output"></div> |
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
function formatNumber(unformattedNumber) { | |
return unformattedNumber.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); | |
} |
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
;(function( $ ){ | |
$.extend($.fn, { | |
t2countdown: function(targetDate) { | |
// Initial variables | |
var target_date = new Date(targetDate).getTime(); | |
var days, hours, minutes, seconds; | |
var countdown = this; | |
// DOM shortcut |
NewerOlder