Skip to content

Instantly share code, notes, and snippets.

View jitendravyas's full-sized avatar

Jitendra Vyas jitendravyas

View GitHub Profile
@mixin highlight($adjustment: 0) {
$color-test: rgba(255, 0, 255, 0.2);
background-color: adjust-hue($color-test, $adjustment * 1deg);
}
@cognitom
cognitom / gulpfile.coffee
Created May 10, 2014 07:47
gulpfile example to integrate with Rails
gulp = require 'gulp'
π = plugins = (require 'gulp-load-plugins')()
# Directories
CSSDIR = './app/assets/stylesheets'
JSDIR = './app/assets/javascripts'
FONTDIR = './app/assets/fonts'
# CSS
gulp.task 'css', ->
@joshgreen
joshgreen / gist:d910c4e8ad01418ef929
Last active August 29, 2015 14:03
Sublime Text 3 User settings 20140901
{
"auto_complete": true,
"auto_indent": true,
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"color_scheme": "Packages/User/predawn (SL).tmTheme",
"detect_slow_plugins": false,
"dictionary": "Packages/Language - English/en_GB.dic",
"draw_white_space": "selection",
anonymous
anonymous / index.html.erb
Created August 20, 2014 10:15
Rails partial multiplier
<%= render :partial=> "fundraise_ideas", :collection=> (1..12).to_a%>
First of all, thank you very much for considering donating to the Centre for Internet and Society!
If you're an Indian national who wishes to support CIS with an individual donation, you can
do so by writing a cheque or a demand draft.
1. The cheque / demand draft should favour "Centre for Internet and Society".
2. Proof of Indian citizenship (photocopy/scan of your passport; photocopy/scan of your voter ID card).
3. These need to be mailed to us at:
@matthillco
matthillco / gulpfile.js
Created April 24, 2015 09:03
Gulp build process for web assets [2015-04-24]
/* Plugins used by this project
--------------------------------------------------------------------------------------
Plugins loaded here and assigned to reference variables
-------------------------------------------------------------------------------------- */
var gulp = require('gulp');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var autoprefix = require('gulp-autoprefixer');
var minifycss = require('gulp-minify-css');
@kidGodzilla
kidGodzilla / responsive-text.css
Last active August 29, 2015 14:27
Simple, declarative responsive text classes
/* Responsive text */
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
@media (max-width: 768px) {
.text-left-xs { text-align: left; }
.text-right-xs { text-align: right; }
.text-center-xs { text-align: center; }
@lsmith
lsmith / iOS_details_arrow.css
Created March 6, 2011 07:56
The CSS to create an iOS details call-to-action arrow
/* assumes .details is position: relative */
.details::after {
content: '';
position: absolute;
border-top: 3px solid #7f7f7f;
border-right: 3px solid #7f7f7f;
height: 6px;
width: 6px;
top: 50%;
right: 12px;
@mrowl
mrowl / config.rb
Created September 2, 2011 20:18
Generating Tornado style static urls in Sass
require 'digest/md5'
module Sass::Script::Functions
# Returns a url for static media (e.g. an icon) consistent with those
# generated by the static_url method in Tornado templates. The method
# takes an md5 hash of the given file and attaches the first five chars to
# the 'v' GET param in the url (i.e. it appends "?v=<hash_slice>").
# Assumes you use a somewhat conventional Tornado layout:
# myapp/myapp - your code
@collinschaafsma
collinschaafsma / rails-grunt.js
Created April 10, 2012 03:43
Grunt config for Rails
// This is the main application configuration file. It is a Grunt
// configuration file, which you can learn more about here:
// https://github.com/cowboy/grunt/blob/master/docs/configuring.md
//
module.exports = function(grunt) {
grunt.initConfig({
// The clean task ensures all files are removed from the dist/ directory so
// that no files linger from previous builds.