Skip to content

Instantly share code, notes, and snippets.

View dergachev's full-sized avatar

Alex Dergachev dergachev

View GitHub Profile
@dergachev
dergachev / test-growl.applescript
Created January 28, 2013 19:29
Compile and run this in Applescript Editor to test if Growl is installed and can be called from Applescript.
on run
sendGrowlNotification("Growl works!")
end run
on sendGrowlNotification(message)
--display alert ("Message: " & |message|)
-- see http://growl.info/documentation/applescript-support.php
tell application "System Events"
set isGrowlRunning to (count of (every process whose bundle identifier is "com.Growl.GrowlHelperApp")) > 0
end tell
@dergachev
dergachev / WET-Drupal-WG-Jan25.md
Created January 25, 2013 20:30
Jan 25 WET Drupal Working Group notes

Jan 25 WET Drupal Working Group notes

Drupalcamp Ottawa!

  • http://drupalcampottawa.com/
  • Feb 22 and 23
  • Andrew Hoppin from NYS Senate (keynote)
  • Looking for panelists, speakers.
  • Expecting 200+ people on the Friday, (first day)
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active April 28, 2025 00:02
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@dergachev
dergachev / README.md
Last active December 11, 2015 04:58
pin-screenshot.bookmarklet.js

Pin Screenshot bookmarklet

The Pin Screenshot bookmarklet allows you to post a screenshot of the current page to Pinterest. Requires own screenshot tool, such as github.com/dergachev/copy-public-url.

Placeholder screenshot:

Screenshot

Installation

@dergachev
dergachev / index.html
Last active December 11, 2015 03:49
youtube JS API demo. visit http://bl.ocks.org/4540743
<!--
/* Copyright (c) 2007 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@dergachev
dergachev / README.md
Last active October 3, 2022 17:13
Cross-domain POST requests
@dergachev
dergachev / README.md
Last active November 9, 2022 05:42
descriptive-url.bookmarklet.js
@dergachev
dergachev / README.md
Last active December 10, 2015 15:38
Testing SVG uploads to Gist
@dergachev
dergachev / test-svg-no-extension.txt
Created December 20, 2012 18:56
SVG gist 404 error test
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1" viewBox="0 0 300 300" preserveAspectRatio="none">
<defs>
<g id="horizontal-lines">
<polyline vector-effect="non-scaling-stroke" points="0,100 300,100" />
<polyline vector-effect="non-scaling-stroke" points="0,200 300,200" />
</g>
@dergachev
dergachev / README.md
Created December 18, 2012 21:19
Drupal views cache links

Links about Generational Cache

Views content cache module: