Skip to content

Instantly share code, notes, and snippets.

View RickCogley's full-sized avatar
👻
Migrated eSolia to MS365, implementing ISO 27001 ISMS in Sharepoint.

Rick Cogley RickCogley

👻
Migrated eSolia to MS365, implementing ISO 27001 ISMS in Sharepoint.
View GitHub Profile
@billerickson
billerickson / gist:1209601
Created September 11, 2011 13:46
Add custom fields to Display Posts Shortcode
<?php
/**
* Add custom fields to Display Posts Shortcode
* @author Bill Erickson
* @link http://wordpress.org/extend/plugins/display-posts-shortcode/
* @link http://www.billerickson.net/shortcode-to-display-posts/comment-page-1/#comment-4565
*
* @param $output string, the original markup for an individual post
* @param $atts array, all the attributes passed to the shortcode
* @param $image string, the image part of the output
@amcgregor
amcgregor / tags.tsv
Last active July 2, 2019 19:31
Tags (and their colours) I use on GitHub Issues.
dd5500 0.security A critical security issue is involved.
e10c02 1.defect A problem has been encountered that is preventing utilization.
2d9e11 2.enhancement A request for a new feature or altered behaviour.
ad009f 3.question Additional information has been requested.
2a4380 area:
d4c5f9 client:
6c8ad5 component:crud Issue involves the REST API operations: create, read, update, or delete.
@dupuy
dupuy / README.rst
Last active May 5, 2024 18:42
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

@vimishor
vimishor / .twitter.config-example.json
Created October 31, 2012 11:35
Tweet from your terminal.
{
"oauth_consumer_key": "XXX",
"oauth_consumer_secret": "XXX",
"access_token": "XXX",
"access_token_secret": "XXX"
}
@aaronbassett
aaronbassett / providers.md
Last active March 31, 2024 17:41
Email sub addressing for different providers

Google

  • Domains: gmail.com, googlemail.com
  • Qualifiers: +
  • Regex: \+([ -~]*)@
  • Notes: Periods in address are ignored. foo.bar@ == foobar@

Yahoo

  • Domains: yahoo.*
  • Qualifiers: -
  • Regex: \-([ -~]*)@
@djs070
djs070 / simple-jquery-modal-with-cookie
Created November 29, 2012 05:22
simple jquery modal with cookie
@jareware
jareware / SCSS.md
Last active May 19, 2024 14:03
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@rebornix
rebornix / rss2md.py
Created April 11, 2013 12:51
parse rss to markdown
import feedparser
rss_url = ""
feed = feedparser.parse( rss_url )
items = feed["items"]
for item in items:
time = item[ "published_parsed" ]
title = item[ "title" ].encode('gb18030')
fileName = str(time.tm_year) + '-' + str(time.tm_mon) + '-' + str(time.tm_mday) + '-' + title + '.md'
@mojavelinux
mojavelinux / gfm-vs-asciidoc.asciidoc
Created June 26, 2013 18:57
A comparison of GitHub-flavored Markdown syntax versus AsciiDoc syntax, based on examples in the GitHub-flavored Markdown reference. Note that this gist requires Asciidoctor >= 0.1.3 to render properly.
@jasonrudolph
jasonrudolph / 00-about-search-api-examples.md
Last active April 30, 2024 19:21
5 entertaining things you can find with the GitHub Search API