Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am alwaysanirudh on github.
  • I am alwaysanirudh (https://keybase.io/alwaysanirudh) on keybase.
  • I have a public key whose fingerprint is 1BA2 8775 921C 6D11 08E2 00D3 23AB B8E2 9A61 D74E

To claim this, I am signing this object:

@alwaysanirudh
alwaysanirudh / Sublime-Ruby-Settings
Last active March 21, 2016 09:08
Sublime-Ruby-Settings
// Place your settings in the file "User/Preferences.sublime-settings", which
// overrides the settings in here.
//
// Settings may also be placed in file type specific options files.
{
// Sets the colors used within the text area
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
// Note that the font_face and font_size are overridden in the platform
// specific settings file, for example, "Preferences (Linux).sublime-settings".
documents = [ dict(
email=open("conference/%d.txt" % n).read().strip(),
category='conference') for n in range(1,372) ]
documents.extend([ dict(
email=open("job/%d.txt" % n).read().strip(),
category='job') for n in range(1,275)])
documents.extend([ dict(
email=open("spam/%d.txt" % n).read().strip(),
category='spam') for n in range(1,799) ])
#!/usr/bin/env python
#
# Simple script showing how to read a mitmproxy dump file
#
from libmproxy import flow
import json, sys
with open("mitmproxy_dump.txt", "rb") as logfile:
freader = flow.FlowReader(logfile)
@alwaysanirudh
alwaysanirudh / Woocommerce Links
Created February 15, 2015 10:28
Woocommerce Links
@alwaysanirudh
alwaysanirudh / AWS Deployer Tools
Last active August 29, 2015 14:14
AWS Deployer Tools
Github
bmuller/toquen
leozc/ops.aws.eb.php
adler/awsheet ++++
dixonwh/aws-provisioning ++++
puppetlabs/puppetlabs-aws
Netflix/ice
cookbooks/oc-python
titotp/AWS-Boto-DashBoard
@alwaysanirudh
alwaysanirudh / Tools for entrepreneur to kickstart Idea into Mobile App
Last active August 29, 2015 14:06
Tools for entrepreneur to kickstart Idea into Mobile App
Prototyping your app gives you clarity on its every aspect, feature and the user flow. You need to have this bit sorted even before you approach a developer for building the application. The more clarity you have on your requirements, the more precise your timeline and pricing estimate for development.
1. Proto.io lets you create a full mobile-app experience without coding. What you get is a complete user flow and navigation of your app with interactive elements such as gestures and touch events to make it interactive.
2. InVisionapp.com is another tool that allows you to create a fully interactive app prototype. The free tool also allows you to interact with your team members through a collaborative framework.
3. POPapp.in helps entrepreneurs, designers or even students to transform their pen and paper ideas into a prototype. If you started by sketching on a notepad, simply import it into this app by taking a picture.
A/B testing. The only way to know if something is working in your app is to test and me
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class ImageOptimize extends Command {
/**
* The console command name.

Writing better python code


Swapping variables

Bad code