- https://github.com/danialfarid/angular-file-upload
- https://github.com/twilson63/ngUpload
- http://blueimp.github.io/jQuery-File-Upload/angularjs.html
- http://blog.brunoscopelliti.com/a-directive-to-manage-file-upload-in-an-angularjs-application
- http://badwing.com/multipart-form-data-ajax-uploads-with-angularjs/
- http://shazwazza.com/post/Uploading-files-and-JSON-data-in-the-same-request-with-Angular-JS
- http://flowjs.github.io/ng-flow/
- http://uncorkedstudios.com/blog/multipartformdata-file-upload-with-angularjs
- http://badwing.com/multipart-form-data-ajax-uploads-with-angularjs/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SomeFragment extends Fragment { | |
MapView mapView; | |
GoogleMap map; | |
@Override | |
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |
View v = inflater.inflate(R.layout.some_layout, container, false); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
printf "Uploading the package to TestFlight...\n" | |
curl http://testflightapp.com/api/builds.json \ | |
-F file=@REPLACE_THIS_WITH_RELATIVE_PATH_TO_APK \ | |
-F api_token='REPLACE_THIS_WITH_YOUR_API_TOKEN' \ | |
-F team_token='REPLACE_THIS_WITH_YOUR_TEAM_TOKEN' \ | |
-F notes='Link to your release notes' \ | |
-F notify=True \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Station.native(function(err, collection) { | |
collection.find({ | |
location: { | |
$near: { | |
$geometry: { | |
type: "Point", | |
// coordinates: [longitude, latitude] | |
coordinates: [50, 50] | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports.bootstrap = function(cb) { | |
// setup 2dsphere Index on `foo` collection | |
Foo.native(function(err, collection) { | |
collection.ensureIndex({ | |
location: '2dsphere' | |
}, function(err, result) { | |
// callbacks gets two parameter: | |
// - an error object (if an error occured) | |
// - the name for the newly created index |
saat melakukan migrasi dari ngRoute ke ui-router, pastikan bahwa service $urlRouteProvider
sudah diganti dengan $urlRouterProvider
, jika tidak maka akan menghasilkan error sebagai berikut:
Uncaught object angular.js:78
(anonymous function) angular.js:78
(anonymous function) angular.js:3809
forEach angular.js:323
loadModules angular.js:3775
createInjector angular.js:3715
doBootstrap angular.js:1379
07-07 22:27:40.962: E/Trace(8893): error opening trace file: No such file or directory (2)
07-07 22:27:42.882: E/dalvikvm(8893): Could not find class 'gpr', referenced from method gps.a
07-07 22:27:42.882: E/dalvikvm(8893): Could not find class 'gpr', referenced from method gps.a
07-07 22:27:42.882: E/dalvikvm(8893): Could not find class 'gpr', referenced from method gps.a
07-07 22:27:43.582: E/dalvikvm(8893): Could not find class 'com.google.android.gms.location.internal.ParcelableGeofence', referenced from method glt.a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE resources [ | |
<!ELEMENT resources (application)> | |
<!ELEMENT application (serviceProfile)+> | |
<!ATTLIST application name CDATA #REQUIRED> | |
<!ELEMENT serviceProfile (supportedTransports, serviceChannel+) > | |
<!ATTLIST application xmlns:android CDATA #IMPLIED> | |
<!ATTLIST serviceProfile xmlns:android CDATA #IMPLIED> | |
<!ATTLIST serviceProfile serviceImpl CDATA #REQUIRED> | |
<!ATTLIST serviceProfile role (PROVIDER | CONSUMER | provider | consumer) #REQUIRED> | |
<!ATTLIST serviceProfile name CDATA #REQUIRED> |
# we ignore all the files inside upload directory
/*
# then we only include the following files, the rest of the files will be ignored
!.gitignore
!.gitkeep
OlderNewer