Skip to content

Instantly share code, notes, and snippets.

View vancura's full-sized avatar
🤓
Kuju pixle!

Václav Vančura vancura

🤓
Kuju pixle!
View GitHub Profile
@praeclarum
praeclarum / Vibrantly Dark.json
Created March 4, 2016 18:18
A new dark theme for Xamarin Studio
{
"name":"Vibrantly Dark",
"version":"1.0",
"description":"A dark theme with vibrant highlights. Inspired by One Dark Vibrant from Atom.",
"originator":"Frank A. Krueger (@praeclarum)",
"colors":[
{"name": "Background(Read Only)", "color":"#2A2A2A" },
{"name": "Search result background", "color":"#005F60" },
{"name": "Search result background (highlighted)", "color":"#007F80" },
{"name": "Fold Square", "color":"#63677F", "secondcolor":"#2A2A2A" },

Source Code Typography

Presentation: http://www.slideshare.net/vancura/source-code-typography

Quotes

Dumb quotes (also known as straight quotes) are straight and vertical. Proper typography never uses straight quotes. They are left over from the age of typewriters, and their only modern use is for coding.

@cmfcmf
cmfcmf / Update, edit and develop Tumblr Theme dynamically.js
Last active July 29, 2019 15:39
Creating and developing own tumblr themes has always been a pitty. However, this single line of javascript will help you A LOT. Follow the instuctions in the first comment below to get your own live version of your theme.
setInterval(function(){jQuery.ajax('YOUR-URL-TO-THE-THEME-FILE',{cache:false}).success(function(html){var btn=jQuery("div[data-action='update_preview']").first();if(html!=ace.edit('editor').getValue()){ace.edit('editor').setValue(html);if(!btn.hasClass('disabled'))btn.click()}});},1000);
@grigs
grigs / browserdetect.js
Created March 13, 2012 17:12
Apple's Browser Detection Script - prettified from http://images.apple.com/global/scripts/browserdetect.js
if (typeof (AC) === "undefined") {
AC = {}
}
AC.Detector = {
getAgent: function () {
return navigator.userAgent.toLowerCase()
},
isMac: function (c) {
var d = c || this.getAgent();
return !!d.match(/mac/i)
def three_periods_to_ellipsis
self.gsub("...", "…")
end
def straight_double_quotes_to_smart_double_quotes
self.gsub(/\B"\b([^"“”„‟″‶\r\n]+)\b"\B/, '“\1”')
end
def straight_single_quotes_to_smart_single_quotes
self.gsub(/\B'\b([^'‘’‚‛′‵\r\n]+)\b'\B/, '‘\1’')