Skip to content

Instantly share code, notes, and snippets.

Avatar
👾
Zoning

Shekhar K. Sharma absqueued

👾
Zoning
View GitHub Profile
@absqueued
absqueued / restart-gpg-agent.sh
Created February 17, 2022 13:20 — forked from raabf/restart-gpg-agent.sh
restarts the gpg-agent. often necessary because it is so faulty program.
View restart-gpg-agent.sh
#!/bin/bash
# restarts the gpg-agent
# often necessary because it is so faulty program
killall gpg-agent || true
gpg-agent --daemon
View mediaquery.css
@media screen and (max-width: 767px) {
input, select, textarea {
font-size: 16px;
}
}
View Meta Viewport.html
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
@absqueued
absqueued / detect.js
Last active June 30, 2016 11:33 — forked from realdeprez/browser-class.js
adds browser name+version class to html body tag
View detect.js
/**
* Add Current Browser name to HTML element.
* E.g. <html class="chrome">
*/
try {
document.getElementsByTagName('html')[0].className += ' ' + (/(Firefox|MSIE|Trident|Chrome|Safari|Opera)[\/\s]/).exec(navigator.userAgent).splice(1, 2).join('').toLowerCase();
} catch (e) {}
@absqueued
absqueued / app.js
Last active August 29, 2015 14:23
Usage Sample for Angular JS Context Menu Directive
View app.js
'use strict';
/**
* This Gist is code sample for blogpost:
* http://www.cssjunction.com/angularjs/custom-context-menu-directive/
*/
var app = angular.module('contextMenuApp')
.controller('MainCtrl', function ($scope) {
@absqueued
absqueued / Learn Twitter Bootstrap in 3 days.md
Last active August 29, 2015 14:08
Syllabus for full day crash course! In-House!!
View Learn Twitter Bootstrap in 3 days.md

Day 1

  • CSS/Frontend Frameworks Overview & Why: 1 Hour
  • Up and running with Bootstrap: 1 Hour
  • Setting up with SASS or LESS: 1 Hour
  • Extending for greater Frontend Architecture: 1 Hour
  • Grid System: 1 Hour
  • Nesting and Offsetting: 1 Hour
  • Build Any Layout - Workshop: 2 Hours
View angularjs_directive_attribute_explanation.md

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>
@absqueued
absqueued / Must-Have-Grunts
Last active August 29, 2015 14:00
Must have Grunt Plugins for any Front-end Developers.
View Must-Have-Grunts
Network Testing:
==========================
Grunt Throttle [https://github.com/tjgq/grunt-throttle]
Grunt Doxx