Skip to content

Instantly share code, notes, and snippets.

View absqueued's full-sized avatar
...

Shékhar absqueued

...
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.
#!/bin/bash
# restarts the gpg-agent
# often necessary because it is so faulty program
killall gpg-agent || true
gpg-agent --daemon
@absqueued
absqueued / app.js
Last active August 29, 2015 14:23
Usage Sample for Angular JS Context Menu Directive
'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) {

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>