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
-- Recive a HTTP POST and relay it | |
-- Author: Waqas Hussain | |
-- Derived from mod_post_msg by Kim Alvefur <[email protected]> | |
-- Some code borrowed from mod_webpresence | |
-- | |
-- Example usage: | |
-- curl http://example.com:5280/presence/user -d "Hello there" | |
-- or | |
-- curl http://example.com:5280/presence/[email protected] -d "Hello there" |
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
require 'System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' | |
include System::DirectoryServices | |
class WinManager | |
attr_accessor :connection_string | |
if !defined? FLAG_CANNOT_CHANGE_PASSWORD | |
FLAG_CANNOT_CHANGE_PASSWORD = 0x40 | |
FLAG_PASSWORD_NEVER_EXPIRES = 0x10000 |
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
$('.submittable').live('change', function() { | |
$(this).parents('form:first').submit(); | |
}); |
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
local sendEscape = true | |
local ctrlKeyTimer = hs.timer.delayed.new(0.15, function() | |
sendEscape = false | |
end) | |
local lastMods = {} | |
local flagsChangedHandler = function(event) | |
local newMods = event:getFlags() | |
if lastMods.ctrl == newMods.ctrl then return false end |
Put links inside codeblocks on GitHub:
<pre>
import { assign, map } from '<a href="https://www.npmjs.com/package/lodash" title="Lodash on npm">lodash</a>';
<a href="https://lodash.com/docs#assign" title="assign documentation">assign</a>({ 'a': 1 }, { 'b': 2 }, { 'c': 3 });
// → { 'a': 1, 'b': 2, 'c': 3 }
<a href="https://lodash.com/docs#map" title="map documentation">map</a>([1, 2, 3], function(n) { return n * 3; });
// → [3, 6, 9]