Skip to content

Instantly share code, notes, and snippets.

View joanbarros's full-sized avatar
:shipit:

Joan Barros joanbarros

:shipit:
View GitHub Profile

Keybase proof

I hereby claim:

  • I am joanbarros on github.
  • I am joanbarros (https://keybase.io/joanbarros) on keybase.
  • I have a public key ASAmMFyq1CdDwJ_CdXIRiHrfieqhkzrmE7vvksunu3lN8Qo

To claim this, I am signing this object:

@joanbarros
joanbarros / Index.cshtml
Created February 3, 2015 22:30
Example of the `DropDownListFor` removing the selected item in a `SelectList` object when the `SelectList` is passed as a parameter to the `DropDownListFor` helper method.
@model SelectListItemInconsistencyMVCAPP.Models.TestModel
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
// Passing as a parameter which takes a IEnumerable<SelectListItem> object.
@Html.DropDownListFor(m => Model.valueA, (SelectList)ViewData["valueA"])
@joanbarros
joanbarros / autorelease_arc_bug_bcs_phonegap
Created March 22, 2014 01:24
com.phonegap.plugins.barcodescanner (ios): 'autorelease' is unavailable: not available in automatic reference counting mode
JoansMBP:BarcodeDemo joanbarros$ phonegap build ios
[phonegap] detecting iOS SDK environment...
[phonegap] using the local environment
[phonegap] compiling iOS...
Build settings from command line:
ARCHS = i386
CONFIGURATION_BUILD_DIR = /Users/joanbarros/Learning/phonegap/BarcodeDemo/platforms/ios/build/emulator
SDKROOT = iphonesimulator7.1
VALID_ARCHS = i386