Skip to content

Instantly share code, notes, and snippets.

View oyeb's full-sized avatar
🎯
Focusing

Ananya Bahadur oyeb

🎯
Focusing
View GitHub Profile
@oyeb
oyeb / authorize_net.iex.exs
Last active February 1, 2018 12:17
Some frequently used bindings for AuthorizeNet
# Handy bindings when developing the AuthorizeNet gateway integration.
# Most of the bindings are for the `opts`
# Instructions
# Just rename this file to `.iex.exs` and save it in either,
# 1. the gringotts root directory
# 2. your applications root directory
# essentially the place where you launch your `iex` sessions via `iex -S mix`.
@oyeb
oyeb / post-commit
Last active February 12, 2018 10:15
A git-hook that runs credo and optionally the formatter on commited changes
#!/bin/sh
#
# Runs credo and the formatter on the staged files, after the commit is made
# This is purely for notification and will not halt/change your commit.
# You must add the "path to Elixir 1.6 repository" to `ELIXIR_16` environment variable,
# Add this to your shell's `.rc`:
# export ELIXIR_16=path/to/elixir1.6
# List all .ex files staged in the previous commit
@oyeb
oyeb / monei.iex.exs
Last active April 9, 2018 06:31
Some frequently used bindings for MONEI
# Handy bindings when developing the MONEI gateway integration.
# Most of the bindings are for the `opts`
# Instructions
# Just rename this file to `.iex.exs` and save it in either,
# 1. the gringotts root directory
# 2. your applications root directory
# essentially the place where you launch your `iex` sessions via `iex -S mix`.
@oyeb
oyeb / elixir-meetup.sh
Last active January 12, 2018 12:45
Launching the dev environment for the meetup
#!/bin/sh
git clone https://github.com/aviabird/gringotts.git
cd gringotts
git fetch origin dev
git checkout dev
# fork off from dev into `global-collect` or whatever you wish
git checkout -b global-collect
mix deps.get
@oyeb
oyeb / dev.exs
Last active January 12, 2018 13:20
Development bindings
defmodule M do
# some handy aliases
alias Gringotts.{CreditCard, Response, Money, Gateways.GlobalCollect}
# some really, really frequently used bindings!
@amount %{value: 4200, currency: "USD"}
@card %CreditCard{
number: "4567350000427977",
month: 12,
@oyeb
oyeb / helpers.ex
Last active January 12, 2018 20:17
Utility functions for GlobalCollect
# This is a module attribute, keep it after the `@moduledoc`
# This maps thecard brand to a GlobalCollect specific code
@brand_map %{
"VISA": "1",
"AMERICANEXPRESS": "2",
"MASTER": "3",
"DISCOVER": "128",
"JCB": "125",
"DINERSCLUB": "132"
@oyeb
oyeb / cse_em_gmail.md
Created July 18, 2017 16:33
Operating IIT Bombay CSE account with Android Gmail App

Adding your CSE email account to Gmail android app

  1. Goto Gmail > Settings > Add Account.
  2. Choose Other and enter you CSE email ID, [email protected].

Imgur

  1. Choose IMAP

Imgur

@oyeb
oyeb / Android 2017.md
Last active May 9, 2017 16:14
Tips on how to submit the course project

Submitting your Android project

We are working towards making the instance available on the public internet. For now, all features work when the instance is accessed from Amrita network on:

http://git.amritanet.edu

Note the net after amrita

0. (Optional) Read our wiki

@oyeb
oyeb / Guide.md
Last active April 25, 2017 22:18
Amrita Gitlab usage guide

Guide to Using Amrita's Gitlab CE

Hello! The Coimbatore campus of Amrita Vishwa Vidyapeetham now runs an instance of Gitlab CE on http://git.amritanet.edu

@account-init

Do these things first.

  1. Learn how to use git.
  2. Generate and upload public SSH key, can do from windows too. No excuse.
@oyeb
oyeb / ideas_beginner.md
Created March 19, 2017 14:41
Beginner projects

Potential projects Sem 2 onwards

HTML, js projects are good, as UI is easily created. CBSE now focuses on Java in +2 curriculum. So Java based implementation is also fine. But I really can't think of a project that requires Java.

1. Vim and Shell scripts

Will help in C Programming course, but is hard. People who have no problem in feeling frustrated or late night SO surfing are welcome. Make a shell script that helps in reducing keystrokes in the Lab, automates and speeds up the workflow of: