Skip to content

Instantly share code, notes, and snippets.

View ahmed1490's full-sized avatar

Ahmed Abbas ahmed1490

View GitHub Profile
@mjallday
mjallday / balanced.rb
Created January 22, 2014 16:25
bank account payment example - ruby
require 'balanced'
# create an api key and marketplace for example purposes only.
# in real-life you only do this once by the dashboard.
api_key = Balanced::ApiKey.new.save
Balanced.configure(api_key.secret)
marketplace = Balanced::Marketplace.new.save
# create a bank account. this is normally done with balanced.js
@drewtempelmeyer
drewtempelmeyer / balanced-validators.js
Created January 11, 2014 20:57
jQuery Validation methods for Balanced.js
/**
* Balanced.js Validators
*
* jQuery Validation methods for use with Balanced.js
*/
;(function($) {
"use strict";
/**
@t-io
t-io / osx_install.sh
Last active January 17, 2025 09:54
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@amiri
amiri / Janky leaflet layer control of d3 svg overlay
Created January 3, 2014 02:42
Janky leaflet layer control of d3 svg overlay
var map = L.map('map').setView([29.7628, - 95.3831], 15);
var openStreet = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
var baseLayers = {
"OpenStreetMap": openStreet
};
var overlays = {};
function project(point) {
var latlng = new L.LatLng(point[1], point[0]);
var layerPoint = map.latLngToLayerPoint(latlng);
@0xabad1dea
0xabad1dea / rsa-not-buying-it.md
Last active May 4, 2022 21:59
Sorry, RSA, I'm just not buying it

Sorry, RSA, I'm just not buying it

I want to be extremely clear about three things. First, this is my personal opinion – insert full standard disclaimer. Second, this is not a condemnation of everyone at RSA, present and past. I assume most of them are pretty okay, and that the problem is confined to a few specific points in the company. However, “unknown problem people making major decisions at RSA” is a bit unwieldy, so I will just say RSA. Third, I'm not calling for a total boycott on RSA. I work almost literally across the street from them and I don’t want to get beat up by roving gangs of cryptographers at the local Chipotle.

RSA's denial published last night is utter codswallop that denies pretty much everything in the world except the actual allegations put forth by Reuters and hinted at for months by [other sources](http://li

@kenrett
kenrett / Selenium Cheat Sheet.md
Last active July 31, 2024 20:56
Selenium Cheat Sheet - Ruby

#Getting Started

##Webpage:

<html>
<head>
    <title>Testing with Ruby and Selenium WebDriver</title>
</head>
 
<body bgcolor="antiquewhite">
@theycallmeswift
theycallmeswift / api_dev_tools.md
Created October 24, 2013 21:18
The list of awesome API Developer Tools from John Sheehan's (https://twitter.com/johnsheehan) talk at API Strategy SF (http://www.apistrategyconference.com/2013SF/)
@kennethdavidbuck
kennethdavidbuck / menu-speech-bubble-link-view.js
Created October 6, 2013 19:10
Example extension of Ember LinkView to include animated properties
@maxim
maxim / rails_load_path_tips.md
Last active January 9, 2025 00:59
How to use rails load paths, app, and lib directories.

In Rails 3

NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths

If you add a dir directly under app/

Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.

If you add a dir under app/something/