Skip to content

Instantly share code, notes, and snippets.

View pbernasconi's full-sized avatar
🇨🇭

Paolo Bernasconi pbernasconi

🇨🇭
View GitHub Profile
@pbernasconi
pbernasconi / sqlite.js
Last active April 7, 2016 22:15
ngCordova SQLite Plugin
angular.module('ngCordova.plugins.sqlite', [])
.factory('$cordovaSQLite', ['$q', function ($q) {
return {
openDB: function(dbName) {
return window.sqlitePlugin.openDatabase({name: dbName});
},
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pbernasconi
pbernasconi / ionic-blog-post.md
Last active August 29, 2015 14:10
Ionic blog post - ngCordova (Moving Forward with ngCordova)

Moving Forward with ngCordova

To watch ngCordova grow from a small idea to a popular open source project with over 1250 stars on github has been a great pleasure for me. Since its inception in July 2014, I’ve had the opportunity to learn about creating and maintaining a github repository, and I’ve come to realize the true power of the community and contributors in open source. With the help and submissions from the community, ngCordova is most definitely greater than the sum of its parts.

When ngCordova started it covered 14 basic Cordova plugins. Now it has 47 and counting, ranging from Push Notifications to Facebook support. We have since released 8 versions, received 230 pull requests from 49 contributors, and resolved over 170 issues.

So, what's next?

The first new feature in ngCordova's future is an automatic deviceready check to determine whether a device is ready for plugins to be used. Currently the only way to ensure this, is to manua

@pbernasconi
pbernasconi / $cordovaPush.js
Last active August 29, 2015 14:13
$cordovaPush with $rootScope.$new()
angular.module('ngCordova.plugins.push', [])
.factory('$cordovaPush', ['$q', '$window', '$rootScope', '$timeout', function ($q, $window, $rootScope, $timeout) {
var $cordovaPush = $rootScope.$new(true);
$cordovaPush.onNotification = function (notification) {
$timeout(function () {
$cordovaPush.$broadcast('notificationReceived', notification);
});
};
$cordovaPush.register = function (config) {
@pbernasconi
pbernasconi / ngCordova-v0.1.11-alpha-changelog.md
Created January 14, 2015 15:05
ngCordova v0.1.11-alpha Changelog.md

New

  • NPM - deploy new versions using Travis 081a23f
  • FileOpener2 plugin - created module and factory for fileOpener2 plugin 08970d0
  • inAppBrowser plugin - refractor into a provider to set default options + override default options in open() method daeedd1 8d9e7fb
  • File Transfer plugin - refractor out FileTransfer plugin from File plugin into its own module 11717fc
  • Local Notification - added registerPermission() method for iOS 8 742d961cfd91a19998029aa51d25602387cb4e29
  • OAuth -Magento, ADFS, Vkontakte support 8bb4198

Fix

Verifying I am +pbernasconi on my passcard. https://onename.com/pbernasconi
@pbernasconi
pbernasconi / link.html
Last active September 2, 2015 00:58
Plaid link w/ Intuit enabled
[28,14,64]
[46,80,44]
[56,19,44]
[38,65,44]
[28,37,64]
[48,25,44]
[76,44,44]
[42,58,44]
[64,62,44]
[34,31,64]