Skip to content

Instantly share code, notes, and snippets.

@alihammad-gist
alihammad-gist / basic.html
Created December 30, 2012 14:14
HTML Basic Template
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>[Title]</title>
</head>
<body>
</body>
</html>
@alihammad-gist
alihammad-gist / default.css
Created January 3, 2013 04:52
mediaquery
@media screen and (max-width: 1200) {
body {
background: gray;
}
div.carousel div.carousel-inner {
margin: 3px 0 0 38px;
}
div.carousel {
width: 75%;
/* This is the code from reset.less LINE:135) */
input[type="search"] {
.box-sizing(content-box);
-webkit-appearance: textfield;
}
/* This this is class its calling (.box-sizing) */
.box-sizing(@boxmodel) {
-webkit-box-sizing: @boxmodel;
@alihammad-gist
alihammad-gist / HTML : Boilerstrap
Created January 7, 2013 04:54
HTML : Boilerstrap
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Template &middot; Bootstrap</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
@alihammad-gist
alihammad-gist / RElog
Last active December 12, 2015 09:39
RElog
Gingerbear [Wazu] (71.231.170.6) has joined the game
ZeroKnight [Wazu] (75.94.172.165) has joined the game
MandaPanda [WAZU] (173.55.36.241) has joined the game
marly (96.20.17.29) has joined the game
jack>KING< (190.80.249.165) has joined the game
loaded 1930 waypoints from maps\deadsimple.wpt
Welcome to the [Wazu] Clan Public Server! Join us on IRC at irc.wazuclan.com #wazuclan
map is being requested, please wait..
jack>KING< stole the omega flag
jack>KING< was laser shocked by Gingerbear [Wazu] [@14.79m]
<cocomo> i have been muted by ZeroKnight numerous times when i beat him and call him a loser!
<Rabidbutton> Everyone just needs to chill out
<cocomo> while he and his ginger friend call people ni*gers and pakis and stuff
<Rabidbutton> Stop attacking each other
<cocomo> am not attacking anyone i need to know why can they call people niger while if the lose and i call em losers
<cocomo> they get pissed off
<-- Espionage (~Espionage@eurost2.lnk.telstra.net) has quit (Remote host closed the connection)
<cocomo> Zeroknight guy also forces maps because he doesn't like people voting insta ?
<cocomo> why have voting system thn if the mods are to decide what to play
<Rabidbutton> Well they shouldn't call people that, and you shouldn't call them losers
@alihammad-gist
alihammad-gist / gist:5222060
Created March 22, 2013 15:17
usermanagerideas
<?php
/**
create user management table
users
-uid
-username
-password
-email
editors
<?php
/**
id
uid
module (id of the module)
entityId (0 = all)
c 0/1
r 0/1
package main
import (
"bufio"
"fmt"
"log"
"net"
"sync"
)
@alihammad-gist
alihammad-gist / Magento registry dump
Created April 11, 2014 09:34
Magento registry dump
<?php
if (!$this->getCollection()) {
$reflectionClass = new ReflectionClass('Mage');
$reflectionProperty = $reflectionClass->getProperty('_registry');
$reflectionProperty->setAccessible(true);
var_dump($reflectionProperty->getValue(new Mage()));
die;
}