Skip to content

Instantly share code, notes, and snippets.

@Gufran
Gufran / trace.js
Created April 7, 2013 13:44
[jQuery] Trace path to a node
(function( $ ){
jQuery.fn.trace = function () {
if (this.length != 1)
return '';
var path, node = this;
while (node.length) {
var realNode = node[0], name = realNode.localName;
if (!name) break;
name = name.toLowerCase();
@Gufran
Gufran / responsive-navigation.sublime-snippet
Created May 19, 2013 13:08
Unlimited level Responsive Navigation menu in LESS
<snippet>
<content><![CDATA[
${1:.main-menu-navigation} ul {
font-family: ${2:@heading-font};
margin-bottom: 0;
font-size: ${3:20px};
a {
&:hover {
color: ${4:@dark-color};
}

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer

@Gufran
Gufran / gist:7250454
Last active December 27, 2015 02:09
[JavaScript] Serving Casperjs over Node Server
var ip_server = '127.0.0.1:8899';
//includes web server modules
var server = require('webserver').create();
//start web server
var service = server.listen(ip_server, function(request, response) {
var links = [];
var casper = require('casper').create();

Keybase proof

I hereby claim:

  • I am Gufran on github.
  • I am gufran (https://keybase.io/gufran) on keybase.
  • I have a public key whose fingerprint is 2F9D 3B86 713B AD5E 26CE B1BA C611 8A85 5426 4D30

To claim this, I am signing this object:

Provides admin skeleton for application
Components are built as module
Each module has
Public routes
Admin routes
Custom settings routes
File based config
Database based settings
@Gufran
Gufran / Makefile
Last active September 9, 2015 17:54 — forked from isaacs/Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@Gufran
Gufran / apib2httpsnippets
Last active December 4, 2015 07:03 — forked from betamax/apib2httpsnippets
A ruby script to convert an HTTP blueprint JSON file into multiple HAR files and then convert those HAR files in to code snippets using httpsnippet
#!/usr/bin/env ruby
# ./apib2httpsnippets
# Author: Max Novakovic
# Email: max@lateral.io
require 'awesome_print'
require 'json'
require 'fileutils'
require 'uri'

Keybase proof

I hereby claim:

  • I am Gufran on github.
  • I am gufran (https://keybase.io/gufran) on keybase.
  • I have a public key whose fingerprint is B06D 5A93 4800 0DBE F1AE 4D25 B84C 1963 E9B5 2F6A

To claim this, I am signing this object:

@Gufran
Gufran / README.md
Created September 6, 2017 12:17 — forked from joelthompson/README.md
Vault Auth