Skip to content

Instantly share code, notes, and snippets.

View Samnan's full-sized avatar
⚒️

Samnan ur Rehman Akhoond Samnan

⚒️
View GitHub Profile
@Samnan
Samnan / nativebutton.css
Created June 25, 2011 06:25 — forked from rblalock/nativebutton.css
Native OS looking CSS3 button
.nativebutton {
display: inline-block;
margin: 20px;
padding: 3px 6px;
font-family: 'Lucida Grande', Arial, sans-serif;
font-size: 13px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
@Samnan
Samnan / fiddle.css
Created June 25, 2011 06:23 — forked from wookiehangover/fiddle.css
yet another css3 gallery
.gal-wrapper {
width: 100%;
height: 198px;
position: relative;
padding: 0 1em;
margin: 0 -1em;
background-image: -webkit-gradient(
linear, left bottom, right bottom, color-stop(0.1, rgb(72,72,72)), color-stop(0.5, rgb(117,117,117)), color-stop(0.9, rgb(74,74,74))
);
@Samnan
Samnan / csslogo.css
Created June 25, 2011 05:48 — forked from rblalock/csslogo.css
A CSS3 driven logo
h1 {
position: relative;
font-size: 200px;
margin-top: 0;
font-family: 'Myriad-Pro', 'Myriad', helvetica, arial, sans-serif;
text-shadow: 2px 3px 3px #292929;
letter-spacing: -7px;
-webkit-text-stroke: 1px white;
}
@Samnan
Samnan / gameengines.md
Created June 25, 2011 05:48 — forked from bebraw/gameengines.md
List of JS game engines. You can find a wikified version at https://github.com/bebraw/jswiki/wiki/Game-Engines. Feel free to modify that. I sync it here every once in a while.

IMPORTANT! Remember to check out the wiki page at https://github.com/bebraw/jswiki/wiki/Game-Engines for the most up to date version.

Name Latest Release Size (KB) License Type Unit Tests Docs Repository Notes
Akihabara 1.3.1 (2011/05) 453 GPL2, MIT Classic Repro no API github Intended for making classic arcade-style games in JS+HTML5
Aves Commer-cial Obsolete. Company bought by Zynga. E3 2010 Aves Engine Prototype "Suburban World"
bdge github Badly Design Game Engine, an HTML5 Javascript game engine [Demo](h
@Samnan
Samnan / pendulum.js
Created June 25, 2011 05:46 — forked from Gautier/pendulum.js
Javascript pendulum CSS3
/**
* Oh yeah
*/
function rotate(id) {
var element = document.getElementById(id);
function applyRotate(angle) {
var strAngle = "rotate(" + angle + "rad)";
element.style.WebkitTransform = strAngle;
element.style.MozTransform = strAngle;
}
@Samnan
Samnan / jqueryui-dialog-message.js
Created June 24, 2011 13:08 — forked from chicagoworks/jqueryui-dialog-message.js
jQuery UI dialog extension to set the message body of the dialog similar to the way dialog title is set.
var __setOption = $.ui.dialog.prototype._setOption;
$.extend($.ui.dialog.prototype, {
_setOption : function (key, value) {
var self = this,
uiDialog = self.uiDialog;
if (key === 'message') {
self.element.html("" + (value || ' '));
}
__setOption.apply(self, arguments);
}
@Samnan
Samnan / jquery.ui.menu.js
Created June 24, 2011 13:07 — forked from creationix/jquery.ui.menu.js
OS style dropdown menu as a jQuery-UI plugin
(function($) {
$.widget("ui.menu", {
active: false,
last_activated: null,
last_menu_level: null,
last_level: null,
timer_id: null,
_init: function() {
this._menufy();
},
@Samnan
Samnan / 1.8.js
Created June 24, 2011 13:06 — forked from scottgonzalez/1.8.js
quick overview of extending jQuery UI widgets in 1.8 and 1.9
(function( $, prototype ) {
$.extend( prototype.options, {
spinner: "<em>Loading&#8230;</em>"
});
var _create = prototype._create;
prototype._create = function() {
_create.call( this );
var self = this;
//
// jQuery UI combobox
// Based on the combobox example on the jQuery UI home page.
// Must load both jQuery and jQuery UI Widgets before loading this document.
// I use CSS to position the button inside the input element, so it looks just
// like a drop down box.
//
$.widget("ui.combobox", {
_create: function () {
var self = this;
@Samnan
Samnan / jquery.combobox.js
Created June 24, 2011 11:58 — forked from BigBlueHat/jquery.combobox.js
improved version of Combobox code from jQuery UI docs
/**
Copyright 2011 Couchbase, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software