Skip to content

Instantly share code, notes, and snippets.

View palimadra's full-sized avatar

Pali Madra palimadra

View GitHub Profile
@palimadra
palimadra / Readme Markdown Template
Last active August 29, 2015 14:22
Readme file in markdown for projects and folders
# Project Name
TODO: Write a project description
## Installation
TODO: Describe the installation process
## Usage
@palimadra
palimadra / flickr-download-sets
Created November 22, 2014 15:57
Flicker sets downloader
<!DOCTYPE html>
<htm>
<head>
<title>Flickr Sets Downloader</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!--
Simple web app to download SETs from Flickr
@Author: Ido Green
@date: 5/20/2011
-->
@palimadra
palimadra / chrome-ext-download
Created November 12, 2014 17:19
Chrome extension downloader for Chrome. Follow the instructions to get it work.
/*If you want to access the source code of a Chrome extension, you need to get the .crx file. This bookmarklet downloads the .crx file for the Chrome extension you're viewing. You'll be prompted to install it; before dismissing the dialog, check in your Downloads directory. Then just unzip the .crx (it's a zip file).*/
javascript:window.open('https://clients2.google.com/service/update2/crx?response=redirect&x=id%3D' + /webstore\/detail\/([^\/]+)/.exec(window.location.href)[1] + '%26uc')
javascript:window.open%28%27https%3A//clients2.google.com/service/update2/crx%3Fresponse%3Dredirect%26x%3Did%253D%27%20%2B%20/webstore%5C/detail%5C/%28%5B%5E%5C/%5D%2B%29/.exec%28window.location.href%29%5B1%5D%20%2B%20%27%2526uc%27%29
@palimadra
palimadra / chrome-dev-tools-theme
Created November 12, 2014 17:12
Theme for google developer tools
/**********************************************/
/*
/* Tomorrow Skin by Ben Truyman - 2012
/*
/* Based on Chris Kempson's Tomorrow Theme:
/* https://github.com/ChrisKempson/Tomorrow-Theme
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*
@palimadra
palimadra / twitter-google-docs
Created November 12, 2014 17:10
Use twitter from google docs
var CONSUMER_KEY = "<< YOUR KEY HERE >>";
var CONSUMER_SECRET = "<< YOUR SECRET HERE >>";
function getConsumerKey() {
return CONSUMER_KEY;
}
function getConsumerSecret() {
return CONSUMER_SECRET;
}
@palimadra
palimadra / wp-functions
Created November 12, 2014 17:07
A functions file for adding open graph tags to WordPress site
// read more here: http://garage.socialisten.at/2013/06/new-open-graph-tags-for-article-publisher-author/
// (c) @michaelkamleitner
if ( ! function_exists('additional_opengraph_tags') ) {
function additional_opengraph_tags() {
if ( is_single() and ! is_page()) {
?>
<meta property="article:publisher" content="https://www.facebook.com/YourPageName" />
<meta property="article:author" content="https://www.facebook.com/YourAuthorName" />
@palimadra
palimadra / stackedit-markdown-cheat-sheet
Last active March 31, 2022 23:16
Cheat Sheet for Markdown on stackedit.io
<!---
Author: Pali Madra
URL: http://palimadra.tumblr.com
Description: Cheat sheet for markdown on stackedit.io at http://www.stackedit.io
Version: 1.0
Last updated: 10/26/2014
--->
<!--- HEADING --->
# Header 1 #
@palimadra
palimadra / drop-down-menu-subreddit
Created October 24, 2014 16:53
subreddit stylesheet with sidebar with drop-down menu
.submit.submit-link { display: none; }
/*
This is the stule sheet for subreddit
at http://www.reddit.com/r/WritingPrompts.
The menu in the sidebar is interesting and
that needs to be investigated
WritingPrompts Stylesheet Episode 3
Revenge Of The CSS3
@palimadra
palimadra / subreddit-stylesheet
Created October 24, 2014 16:40
Subreddit stylesheet
/* -------------------------------------------------
The style sheet is from the subreddit at
http://www.reddit.com/r/GetMotivated
The reason the stylesheet has been copied
is because it seems to follow for writing
css. For example defining the colors at the start.
Another reason is to see how an image can be
@palimadra
palimadra / clean-reddit
Created October 24, 2014 16:25
Stylesheet for subreddits on reddit and their wikis
/* Body
------------------------------------- */
/* Links */
a:hover {
text-decoration: none!important;
}
/* Quotes */
.md blockquote {
padding: 1px 5px;