Skip to content

Instantly share code, notes, and snippets.

View ctatachar's full-sized avatar

Chitra Tatachar ctatachar

View GitHub Profile
@thegitfather
thegitfather / vanilla-js-cheatsheet.md
Last active March 7, 2026 11:26
Vanilla JavaScript Quick Reference / Cheatsheet
@chrissimpkins
chrissimpkins / gist:5bf5686bae86b8129bee
Last active December 21, 2025 20:02
Atom Editor Cheat Sheet: macOS

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@daspecster
daspecster / ziptastic-form.html
Last active August 29, 2015 13:57
Ziptastic Form Example
<form id="theform" class="pure-form pure-form-stacked">
<fieldset>
<label for="name">
Name:
<input type="text" id="name" placeholder="Full Name"/>
</label>
<label for="address1">
Address:
<input type="text" id="address" placeholder="House Number, Street" />
</label>
@joyrexus
joyrexus / README.md
Last active February 23, 2026 21:20 — forked from liamcurry/gist:2597326
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@tinabeans
tinabeans / template.html
Last active February 16, 2026 02:22
A super-barebones single-column responsive email template, assuming a max-width of 540px. Read about it on the Fog Creek blog.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Single-Column Responsive Email Template</title>
<style>
@media only screen and (min-device-width: 541px) {
.content {
# coding=UTF-8
from __future__ import division
import nltk
from collections import Counter
# This is a simple tool for adding automatic hashtags into an article title
# Created by Shlomi Babluki
# Sep, 2013
@glueckpress
glueckpress / px-rem-cheat-sheet.css
Created May 26, 2013 16:17
Cheat sheet for rem-calculations based upon 14px and 16px.
/*! = $rembase: 14px
--------------------------------------------------------------
* hmtl { font-size: 87.5%; }
* body { font-size: 14px; font-size: 1rem; line-height: 1; }
* 4px 0.28571429rem
* 8px 0.571428571rem
* 12px 0.857142857rem
* 13px 0.928571429rem
* 14px 1rem
* 16px 1.142857143rem
@wvuwebgist
wvuwebgist / helvetica.css
Last active March 11, 2016 21:04
Helvetica Neue for WVU Websites
/* Helvetica Webfont from fonts.com/webfonts */
body { font-family: "HelveticaNeueW02-55Roma", "Helvetica Neue", Helvetica, "Helvetica LT Std", "Helvetica CY", Arial, "Lucida Grande", sans-serif; }
em, i { font-family: "HelveticaNeueW01-56It", "Helvetica Neue", Helvetica, "Helvetica LT Std", "Helvetica CY", Arial, "Lucida Grande", sans-serif; font-style: normal; }
strong, b { font-family: "HelveticaNeueW01-75Bold", "Helvetica Neue", Helvetica, "Helvetica LT Std", "Helvetica CY", Arial, "Lucida Grande", sans-serif; }
strong em, em strong, strong i, i strong, b em, em b, b i, i b { font-family: "HelveticaNeueW01-76Bold", "Helvetica Neue", Helvetica, "Helvetica LT Std", "Helvetica CY", Arial, "Lucida Grande", sans-serif; }
/* h1 & h2 inherit styles from a global stylesheet to be in line with our branding. Without a global stylesheet, they just inherit Helvetica Neue Roman */
h3, h4 { font-family: "HelveticaNeueW01-75Bold", "Helvetica Neue", Helvetica, "Helvetica LT Std", "Helvetica CY", Arial, "Lucida Grande",
@adamjohnson
adamjohnson / _buttons.scss
Last active December 14, 2015 21:59
CSS3 Stylish buttons from Dira.ro, converted to SCSS
// ---
// Compass (v0.13.alpha.4)
// Sass (v3.2.7)
// ---
// Make making buttons easier
// https://css3-buttons.heroku.com/
// https://github.com/dira/CSS3-stylish-buttons
// This file has been converted to SCSS & requires Compass
@erunyon
erunyon / gist:5073909
Created March 3, 2013 00:28
Flexslider code to remove comments from slider images.
jQuery(function($){
var $flexslider = $('.flexslider'),
$slides = $flexslider.find('li'),
stripComment = function(string) {
return string.replace(/<!--/g, '').replace(/-->/g, '');
},
initItem = function(item) {
var $this = $(item);
if(!$this.hasClass('init')) {