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
@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>
@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;
}
@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 {
@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";
@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; }
@mugifly
mugifly / blink.css
Last active May 26, 2024 20:01
CSS Blink for Webkit and others. (Chrome, Safari, Firefox (Gecko), IE, ...) CSSで擬似的なblinkを再現する簡単なTips。
@mnewt
mnewt / bootstrap-tabs.html
Created December 6, 2012 20:28
bootstrap tabs example
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Le styles -->
<link href="../bootstrap/css/bootstrap.css" rel="stylesheet">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>
</head>
<body>
@erichexter
erichexter / RouteConfig.cs
Created November 22, 2012 01:50
Example of using NavigationRoutes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
// You need to add this using statement to use the MapNavigationRoute extension method.
using NavigationRoutes;
namespace MvcApplication13
{
@jakejscott
jakejscott / jQuery.antiforgerytoken.js
Created October 3, 2012 00:33 — forked from scottrippey/jQuery.antiforgerytoken.js
ASP.NET MVC AntiForgeryToken + AJAX = jQuery to the rescue
// Setup CSRF safety for AJAX:
$.ajaxPrefilter(function(options, originalOptions, jqXHR) {
if (options.type.toUpperCase() === "POST") {
// We need to add the verificationToken to all POSTs
var token = $("input[name^=__RequestVerificationToken]").first();
if (!token.length) return;
var tokenName = token.attr("name");
var five = require("../lib/johnny-five");
(new five.Board()).on("ready", function() {
var lcd = new five.LCD({
// LCD pin name RS EN DB4 DB5 DB6 DB7
// Arduino pin # 7 8 9 10 11 12
pins: [ 7, 8, 9, 10, 11, 12 ],
rows: 2,
cols: 16
});