{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true,
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
}
{
"checkoutResponse":{
"cart":{
"id":"1",
"items":[
{
"id":"313fb143-3478-4a4c-b688-e3cb5dcdaa62",
"catalog":"19",
"sku":"4380192",
Phoenix 1.4 ships with exciting new features, most notably with HTTP2 support, improved development experience with faster compile times, new error pages, and local SSL certificate generation. Additionally, our channel layer internals receiveced an overhaul, provided better structure and extensibility. We also shipped a new and improved Presence javascript API, as well as Elixir formatter integration for our routing and test DSLs.
This release requires few user-facing changes and should be a fast upgrade for those on Phoenix 1.3.x.
To get started, simply update your Phoenix dep in mix.exs
:
{:phoenix, "~> 1.4.0-rc"}
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
//phoneGap HTML5 SQLite database schema migration example | |
var db = null; | |
var current_migration = null; | |
var current_schema_version = null; | |
// keep migration version order | |
var db_migrations = { | |
v1: { | |
version: "1.0", | |
up: function(tx) { |
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
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
// author: Pawel Kozlowski | |
var myApp = angular.module('myApp', []); | |
//service style, probably the simplest one | |
myApp.service('helloWorldFromService', function() { | |
this.sayHello = function() { | |
return "Hello, World!" |
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
<script> | |
$( function() { | |
function applyToInputSet( id ) { | |
var dpis = [ 320, 240, 160, 120, 212.8 ]; | |
var labels = [ 'xhdpi', 'hdpi', 'mdpi', 'ldpi', 'tvdpi' ]; | |
var inputs = $(id+' input'); | |
inputs.each( function(i) { | |
if( this.value == '' ) { | |
this.value = ''; | |
} |
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
11-21 13:22:49.850: ERROR/Web Console(7957): Error: [$rootScope:inprog] $apply already in progress | |
http://errors.angularjs.org/1.2.0-rc.3/$rootScope/inprog?p0=%24apply | |
at file:///android_asset/www/app/lib/angular/angular.js:78:12 | |
at beginPhase (file:///android_asset/www/app/lib/angular/angular.js:10995:15) | |
at Scope.$apply (file:///android_asset/www/app/lib/angular/angular.js:10795:11) | |
at HTMLDocument.<anonymous> (file:///android_asset/www/app/js/app.js:65:32) | |
at Object.cordova.fireDocumentEvent (file:///android_asset/www/cordova.js:224:22) | |
at file:///android_asset/www/plugins/org.apache.cordova.network-information/www/network.js:71:21 | |
at Object.cordova.callbackFromNative (file:///android_asset/www/cordova.js:289:54) | |
at processMessage (file:///android_asset/www/cordova.js:1026:21) |
NewerOlder