| Models | Examples |
|---|---|
| Display ads | Yahoo! |
| Search ads |
This file contains hidden or 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
| /* | |
| YOU'LL BE ABLE TO PERFORM A CROSS DOMAIN REQUEST IF YOUR APP IS CERTIFIED OR PRIVILEDGED. | |
| FOR MORE INFO CHECK THE PERMISSIONS MATRIX: https://docs.google.com/spreadsheet/ccc?key=0Akyz_Bqjgf5pdENVekxYRjBTX0dCXzItMnRyUU1RQ0E#gid=0 | |
| First you'll need to setup the permission for doing the cross domain request on your application manifest. | |
| Go to your app manifest, to the permissions section and add the following: | |
| "systemXHR": {} | |
This file contains hidden or 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
| var urlparse = (function() { | |
| var a = document.createElement('a'); | |
| // urlparse('https://example.com:8080/bar.html?baz#yay') | |
| return function(url) { | |
| a.href = url; | |
| return { | |
| hash: a.hash, // '#yay' | |
| host: a.host, // 'example.com:8080' | |
| hostname: a.hostname, // 'example.com' |
This file contains hidden or 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
| if ('MozActivity' in window) { // feature detection | |
| // When getting elements, like document.getElementsByClassName('video-links') | |
| // rather use event delegation, like | |
| // `jQuery(document).on('click', 'video', fn) | |
| document.getElementById('video-1').onclick = function(evt) { | |
| evt.preventDefault(); // Prevent click behaviour | |
| console.log("Launching Video!"); | |
| var activity = new MozActivity({ |
The HearSay P2P File Sharer; a response to The Copyright Alert System, as well as several other internet regulation attempts. The goal of this project is to prove the viability of semi-anonymous and confidential file sharing. Consists of several proofs of concepts such as the formation of ad-hoc mix networks and routing throughout them while maintaining anonymity and semantic security.
However, lets be honest with ourselves for a second. Don't use this to fight an oppressive regime. I can not (and will not try) to 'prove' its security, and I
This file contains hidden or 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
| // @license http://opensource.org/licenses/MIT | |
| // copyright Paul Irish 2015 | |
| // Date.now() is supported everywhere except IE8. For IE8 we use the Date.now polyfill | |
| // github.com/Financial-Times/polyfill-service/blob/master/polyfills/Date.now/polyfill.js | |
| // as Safari 6 doesn't have support for NavigationTiming, we use a Date.now() timestamp for relative values | |
| // if you want values similar to what you'd get with real perf.now, place this towards the head of the page | |
| // but in reality, you're just getting the delta between now() calls, so it's not terribly important where it's placed |
Here are instructions on how to flash your Geeksphone.
- First of all you'll need to have adb and fastboot, these are included in the Android SDK
- If your phone can be turned on, enable 'Remote debugging' (in Settings -> Device Information -> More information -> Debugging)
- Now see if your device is listed when you type
adb devicesin the terminal - If so: run
adb reboot bootloader
- Now see if your device is listed when you type
- If your phone is bricked, load into bootloader by pressing power and volume up
- Verify that the phone is listed when running
fastboot devices
This file contains hidden or 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
| [remote "origin"] | |
| fetch = +refs/heads/*:refs/remotes/origin/* | |
| url = [email protected]:user/repo.git | |
| # add the following 2 lines so $ git push pushes to both master & gh-pages | |
| push = +refs/heads/master:refs/heads/gh-pages | |
| push = +refs/heads/master:refs/heads/master |
This file contains hidden or 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
| // Example code, use with caution! | |
| // Events and .hidden property requires no prefix since 18 | |
| // Set current language on launch | |
| document.documentElement.lang = navigator.language; | |
| function visibilityChange() { | |
| // user went off page, ignore | |
| if (document.hidden) return; |
This file contains hidden or 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
| // Original https://github.com/mozilla/fireplace/blob/c50b5ca51643f13ae2e8b3a003d3aa0432358bf7/hearth/media/js/user.js#L41 | |
| // Retrieve MCC and MNC from mozMobileConnection (requires "privileged" app type and "mobileconnection" permission) | |
| // and translates them to carrier and region via mobilenetwork.js | |
| try { | |
| // When Fireplace is served as a privileged packaged app (and not | |
| // served via Yulelog) our JS will have direct access to this API. | |
| var conn = navigator.mozMobileConnection; | |
| if (conn) { |