- Unofficial binaries are hosted here built for our convenience: http://people.apache.org/~pmuellr/weinre/builds/?C=M;O=D;V=0
- For example this specific file: http://people.apache.org/~pmuellr/weinre/builds/2.0.0-pre-H8EOSCLN-incubating/apache-cordova-weinre-2.0.0-pre-H8EOSCLN-incubating-bin.tar.gz
- Unpack and dump all the files into a local directory. For example I put them in: ~/Dev/weinre/bin
- Run the weinre debug server in a terminal: ~/Dev/weinre/bin/weinre
- See this error? "weinre: error running server: Error: EADDRINUSE, Address already in use" - is your OSX proxy running? (e.g. stop SquidMan)
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
<section> | |
<img src="/assets/images/LogoMark.svg" class="logo-mark__article-end-mark" | |
alt="Ending logo Mark for this article"/> | |
</section> |
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
.logo-mark__article-end-mark { | |
display: block; | |
margin: 0 auto; | |
} | |
@media screen and (max-width: 650px) { | |
.logo-mark__article-end-mark { | |
transform: scale(0.75, 0.75); | |
} | |
} |
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
// This is an example of the Tuple type in Swift programming language | |
// I use this type of data to easily return multiple values from a function call | |
// SEE: https://docs.swift.org/swift-book/LanguageGuide/TheBasics.html#ID329 | |
let t = (200, "OK", "HTTP 200 is a successful return code. The request has succeeded.") | |
print(t) // shows the entire tuple | |
print(t.0) // shows 200 | |
print(t.1) // shows "OK" | |
print(t.2) // shows the longer message |
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
// display a background texture banner | |
GUI.DrawTexture(new Rect(-30.0f, 384.0f, m_topScoreBanner.width, m_topScoreBanner.height), m_topScoreBanner); | |
Vector2 pivotPoint = new Vector2(Screen.width / 2, Screen.height / 2); | |
GUIStyle scoreStyle = new GUIStyle(); | |
// DEBUG: create a background texture coloring the entire label background | |
Texture2D debugTex = new Texture2D(1,1); | |
debugTex.SetPixel(0,0,Color.grey); | |
debugTex.Apply(); |
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
// Simply logging into Facebook via their JavaScript SDK: | |
FB.login(function(response) { | |
// assuming a valid response executing this FQL: | |
FB.api('/me/checkins', function(response) { | |
console.log('me', response); | |
}); | |
}, {scope: 'email,user_status,user_checkins,user_likes,user_interests,user_location,friends_location'}); | |
// these are the contents of service response as a JS object |
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
// Simply logging into Facebook via their JavaScript SDK: | |
FB.login(function(response) { | |
// assuming a valid response executing this FQL: | |
FB.api('/me/likes', function(response) { | |
console.log('me', response); | |
}); | |
}, {scope: 'email,user_status,user_checkins,user_likes,user_interests,user_location,friends_location'}); | |
// these are the contents of service response as a JS object |
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
// Simply logging into Facebook via their JavaScript SDK: | |
FB.login(function(response) { | |
// assuming a valid response executing this FQL: | |
FB.api('/me/friends', function(response) { | |
console.log('me', response); | |
}); | |
}, {scope: 'email,user_status,user_checkins,user_likes,user_interests,user_location,friends_location'}); | |
// these are the contents of service response as a JS object |
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
// Simply logging into Facebook via their JavaScript SDK: | |
FB.login(function(response) { | |
// assuming a valid response executing this FQL: | |
FB.api('/me', function(response) { | |
console.log('me', response); | |
}); | |
}, {scope: 'email,user_status,user_checkins,user_likes,user_interests,user_location,friends_location'}); | |
// these are the contents of service response as a JS object |
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
require(['mediator', 'jquery', 'underscore', 'backbone', 'namespace', 'i18n!common/i18n/nls/strings', | |
'models/the_feature/some_model', 'views/the_feature/some_view'], | |
function(mediator, $, _, Backbone, app, t, TheModel, TheView) { | |
describe('Create Trip View', function() { | |
var createModel, createView; | |
beforeEach(function() { | |
createModel = new Backbone.Model(); | |
createView = new Backbone.View({model: createModel}); |
NewerOlder