Skip to content

Instantly share code, notes, and snippets.

View vemuruadi's full-sized avatar

Adi Vemuru vemuruadi

View GitHub Profile
@vinitkumar
vinitkumar / architecture.md
Last active January 23, 2022 04:36
Pragmatic programmer checklists in form of Gists.

Architectural Questions

  • Are responsibilities well defined?
  • Are the collaborations well defined?
  • Is coupling minimized?
  • Can you identify potential duplication?
  • Are interface definitions and constraints acceptable?
  • Can modules access needed data—when needed?
@katychuang
katychuang / remove_brew-mongo_osx.sh
Last active August 3, 2024 16:45
remove mongodb that was installed via brew
#!/usr/bin/env sh
# first check to see if mongo service is running. you can't delete any files until the service stops so perform a quick check.
launchctl list | grep mongo
# NOTE: the pipe | symbol means the commands on the right performs on the output from the left
# grep is a string search utility. `grep mongo` means search for the substring mongo
# use the unload command to end the mongo service. this is required to 'unlock' before removing the service.
# first look for the file to delete
MONGO_SERVICE_FILE=$(ls ~/Library/LaunchAgents/*mongodb*)
@auser
auser / app.js
Last active October 11, 2017 03:01
The complete source for the http://www.ng-newsletter.com/posts/chrome-apps-on-angular.html article. Enjoy!
angular.module('myApp', ['ngRoute'])
.provider('Weather', function() {
var apiKey = "";
this.getUrl = function(type, ext) {
return "http://api.wunderground.com/api/" +
this.apiKey + "/" + type + "/q/" +
ext + '.json';
};
@swaroopch
swaroopch / expose.sh
Created November 8, 2012 07:03
(not working) How to expose a local server to the outside world via an EC2 server?
# Before: I have a local Java or Django server running on port 8000
function expose_port {
local_port=$1
shift
ssh -vvv -i "$HOME/.ssh/aws.pem" -N -R "9000:localhost:8000" "[email protected]"
}
@vybs
vybs / articles.html
Created December 12, 2011 19:53
news articles dust template
{! article dust template with partials for polling and pagination !}
<div id="today_feed" class="grid unit_8">
<div id="today_feed-updates" class="unit_8 alpha omega">
{>"Polling"/}
</div>
<div id="today_feed-articles" class="unit_8 alpha omega">
<ul class="articles">
{#content}{#news_container_section}{#newsList}
{>"Article"/}
@vybs
vybs / suggest_form.html
Created December 12, 2011 19:34
connection_suggester dust template
{#data}
<div id="connection-suggester-dialog">{! /* DIALOG WRAPPER */ !}
<div class="connection-suggester-picker">{! /* DIALOG PICKER WRAPPER */ !}
{! /* SUGGESTER TOOLS */ !}
<div class="connection-sugg-head">
{! /* SEE ALL/SELECTED BUTTONS WITH COUNTS */ !}
<a href="#" class="show-selected btn-quaternary disabled">
<span class="selected">{.connection_suggester__input_value__see_selected} <b></b></span>
@vybs
vybs / basic_form.html
Created December 9, 2011 01:44
add position
<div class="guided-edit">
{>_close_action/}
{<closeText}{i18n_text_plain__close}{/closeText}
{?firstTaskTitleString}
<h1>{firstTaskTitleString|s}</h1>
{/firstTaskTitleString}
<form class="standard-form" id="{name}_id" name="{name}" method="{method}" action="{action}">
<fieldset>
<legend>{i18n_text_plain__what_is_your_industry}</legend>
@vybs
vybs / skills.html
Created December 9, 2011 00:30
simple skills list dust template
{#profile_skill}
<div class="section" id="profile-skills" style="display:block">
<div class="header">
<h2>{@pre:i18n text="Skills"}</h2>
</div>
{?skills} {! we still want to display the Skills heading, even if the number of skills is zero !}
<div class="content">
<ol class="skills" id="skills-list">
{#skills}
<li class="competency show-bean">