Skip to content

Instantly share code, notes, and snippets.

@bryanbraun
bryanbraun / make-ckeditor-image2-alt-text-required.patch
Created Nov 18, 2014
A patch to CKEditor's image2 plugin, which makes the alt text field required.
View make-ckeditor-image2-alt-text-required.patch
From f788a1a6c27be0fb421d2758492f9366b895ba20 Mon Sep 17 00:00:00 2001
From: Bryan Braun <bryanbraun@1410008.no-reply.drupal.org>
Date: Tue, 18 Nov 2014 14:43:17 -0500
Subject: [PATCH] Make the alt-text field required (and add a class for styling
it).
Signed-off-by: Bryan Braun <bryanbraun@1410008.no-reply.drupal.org>
---
dialogs/image2.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
@bryanbraun
bryanbraun / Octokit_Sinatra_Example.rb
Last active Dec 21, 2017
This file is an example Sinatra app.rb file, showing github API Authentication and usage examples of Octokit.rb. For more context on setting up Sinatra to work with the Github API, see http://developer.github.com/guides/basics-of-authentication/.
View Octokit_Sinatra_Example.rb
# app.rb
require "sinatra"
require "sinatra/activerecord"
require 'rest-client'
require 'json'
require 'octokit'
require 'pp' # for pretty print debugging
# Needed for preserving github auth tokens across sessions.