Skip to content

Instantly share code, notes, and snippets.

@rohandalvi
rohandalvi / gist:d4b6b5dbe98b52ce03d1
Created November 13, 2015 01:04
angellist api returned data. Where to find the code that needs to be sent to angellist to get access token?
/usr/local/bin/node server.js
Auth URL https://angel.co/api/oauth/authorize?client_id=4de5460c00427d9aea168602425ee43e3dd8d312532e9020&scope=email&response_type=code
Listening on port: 8000
DATA { domain: null,
_events: {},
_maxListeners: 10,
output: [],
outputEncodings: [],
writable: true,
_last: true,
@rohandalvi
rohandalvi / gist:c9054efb00cd68e27f23
Created October 14, 2015 23:20
Build failed on 'develop' branch
INFO [Chrome 46.0.2490 (Mac OS X 10.10.5)]: Connected on socket nWLZEOnrdKcirBRopno5 with id 93741653
Chrome 46.0.2490 (Mac OS X 10.10.5) AppCtrl isCurrentUrl should pass a dummy test FAILED
Error: [$injector:modulerr] Failed to instantiate module ngBoilerplate due to:
Error: [$injector:modulerr] Failed to instantiate module ngMaterial due to:
Error: [$injector:modulerr] Failed to instantiate module material.core due to:
Error: [$injector:unpr] Unknown provider: $mdUtilProvider
http://errors.angularjs.org/1.2.29/$injector/unpr?p0=%24mdUtilProvider
at /Users/rohandalvi/startupadda/vendor/angular/angular.js:78:12
at /Users/rohandalvi/startupadda/vendor/angular/angular.js:3803:19
at Object.getService [as get] (/Users/rohandalvi/startupadda/vendor/angular/angular.js:3931:39)
Information:Gradle tasks [:app:assembleDebug]
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:compileDebugNdk UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72103Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42103Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "rohandalvi.com.find"
minSdkVersion 15
targetSdkVersion 21
@rohandalvi
rohandalvi / Erro
Created April 22, 2015 02:10
Error
Information:Gradle tasks [:app:assembleDebug]
Warning:Dependency org.json:json:20140107 is ignored for debug as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage with jarjar to change the class packages
Warning:Dependency org.apache.httpcomponents:httpclient:4.3.5 is ignored for debug as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
Warning:Dependency org.json:json:20140107 is ignored for release as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage with jarjar to change the class packages
Warning:Dependency org.apache.httpcomponents:httpclient:4.3.5 is ignored for release as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
:app:preBuild UP-TO-DATE
@rohandalvi
rohandalvi / build.gradle
Created April 21, 2015 02:55
App gradle file
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.example.dalvir.find"
minSdkVersion 15
targetSdkVersion 20
@rohandalvi
rohandalvi / build.gradle
Created April 21, 2015 02:54
Project Gradle file
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
@rohandalvi
rohandalvi / MainActivity.java
Created April 21, 2015 02:42
MainActivity code
import android.app.Activity;
import android.content.Context;
import android.location.Location;
import android.location.LocationManager;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import java.util.List;
@rohandalvi
rohandalvi / ErrLog
Created April 21, 2015 02:40
Error log generated on calling GooglePlaces constructor with API KEY
04-21 02:39:14.998 767-767/com.example.dalvir.find E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.ExceptionInInitializerError
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager$InternalConnectionFactory.<init>(PoolingHttpClientConnectionManager.java:493)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.<init>(PoolingHttpClientConnectionManager.java:149)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.<init>(PoolingHttpClientConnectionManager.java:138)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.<init>(PoolingHttpClientConnectionManager.java:114)
at org.apache.http.impl.client.HttpClientBuilder.build(HttpClientBuilder.java:726)
at se.walkercrou.places.DefaultRequestHandler.<init>(DefaultRequestHandler.java:18)
at se.walkercrou.places.DefaultRequestHandler.<init>(DefaultRequestHandler.java:34)
at se.walkercrou.places.GooglePlaces.<init>(Googl
@rohandalvi
rohandalvi / find_Bugzilla_params
Last active August 29, 2015 14:11
Can't locate object method "params"
The error:
Rohans-MacBook-Pro-164:Bugzilla rohandalvi$ perl test_email.pm
Can't locate object method "params" via package "Bugzilla" at /Users/rohandalvi/Documents/open_source_stuff/bugzilla/bugzilla/Bugzilla/Mailer.pm line 33.
The module "Token.pm" makes use of the subroutine MessageToMTA to send email which I am trying to use here. . What am I doing wrong? Is this a import issue? However, In the code below, it uses the format MessageToMTA($message) without generating any error
Code from token.pm that also makes call to MessageToMTA subroutine in Mailer.pm
my ($token, $token_ts) = _create_token(undef, 'account', $login_name);