Skip to content

Instantly share code, notes, and snippets.

View abhishekbhalani's full-sized avatar
🎄
working on latest framework...

Abhishek B. abhishekbhalani

🎄
working on latest framework...
View GitHub Profile
@lasandell
lasandell / MappingTest.cs
Last active August 3, 2018 15:49
Code example to accompany my answer to this stackoverflow question: http://stackoverflow.com/questions/7424501/automapper-for-funcs-between-selector-types/7425211
using AutoMapper;
using System;
using System.Linq;
using System.Linq.Expressions;
namespace MappingTest
{
class Cat
{
public string Name { get; set; }
@sivaprabug
sivaprabug / tblcitylist.sql
Created April 8, 2013 12:49
MySQL database of Indian Cities and states,latitude and longitude..
-- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 08, 2013 at 02:48 PM
-- Server version: 5.5.27
-- PHP Version: 5.4.7
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
@grevory
grevory / bootstrap-photo-with-caption.html
Created April 12, 2013 04:47
Simple markup for adding captions and credits to images with Twitter Bootstrap.
<style>
.thumbnail.with-caption {
display: inline-block;
background: #f5f5f5;
}
.thumbnail.with-caption p {
margin: 0;
padding-top: 0.5em;
}
.thumbnail.with-caption small:before {
@practice
practice / bootstrap borderless table css
Created April 13, 2013 06:15
bootstrap borderless table css
/* borderless table */
.table.table-borderless td, .table.table-borderless th {
border: 0 !important;
}
.table.table-borderless {
margin-bottom: 0px;
}
@jalbertbowden
jalbertbowden / css-transitions-on-background-images-in-webkit.html
Last active August 21, 2023 19:45
css transitions on background-image in WebKit - A CodePen by Cameron Adams.
<html><body><div></div></body></html>
@Daniel15
Daniel15 / 1_README.md
Last active March 22, 2025 04:24
Complete Google Drive File Picker example

Google Drive File Picker Example

This is an example of how to use the Google Drive file picker and Google Drive API to retrieve files from Google Drive using pure JavaScript. At the time of writing (14th July 2013), Google have good examples for using these two APIs separately, but no documentation on using them together.

Note that this is just sample code, designed to be concise to demonstrate the API. In a production environment, you should include more error handling.

See a demo at http://stuff.dan.cx/js/filepicker/google/

@rsadwick
rsadwick / canvas_animation
Created July 18, 2013 15:47
Canvas animation with easel.js and tweenmax
<!DOCTYPE html>
<html>
<head></head>
<body onLoad="init();">
<p>demo</p>
<canvas id="demoCanvas" width="640" height="480">
alternate crap for junk ass users
</canvas>
@bhays
bhays / Typeahead-BS3-css
Created August 2, 2013 13:54
Bootstrap 3 style fixes for using Typeahead.js
.twitter-typeahead .tt-query,
.twitter-typeahead .tt-hint {
margin-bottom: 0;
}
.tt-hint {
display: block;
width: 100%;
height: 38px;
padding: 8px 12px;
font-size: 14px;
@ianrose
ianrose / index.html
Created August 27, 2013 23:00
css-keyframe-background-images
<html>
<head>
<style>
body {
background-color: #fff;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-webkit-animation-duration: 10s;
-moz-animation-duration: 10s;
@Krummelz
Krummelz / GridView to CSV Export Utility
Created September 12, 2013 07:23
A utility class to export an ASP.NET GridView control with its contents to a CSV file.
using System.IO;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
/// <summary>
/// Exports a GridView with its contents to a CSV file
/// </summary>
public class GridViewExportUtil
{