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
// this is the background code... | |
// listen for our browerAction to be clicked | |
chrome.browserAction.onClicked.addListener(function (tab) { | |
// for the current tab, inject the "inject.js" file & execute it | |
chrome.tabs.executeScript(tab.ib, { | |
file: 'inject.js' | |
}); | |
}); |
Robin Böhm, Philipp Tarasiewicz
AngularJS: Overview, Best Practices and Pitfalls
Slides
Twitter (Robin, @roobijn)
Twitter (Philipp, @justphilmusic)
Christian Schaefer
HTTP/2: Die Zukunft beginnt jetzt.
Slides
Twitter (@derSchepp)
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
// @include font-face($style-name, $file, $family, $category); | |
// $style-name being the name of the font e.g. Helvetica | |
// $file meaning the file name, without the file extensions | |
// $family being the folder inside the fonts folder where the font files are | |
// $category is serif or sans-serif or monospace etc. as a fall back in CSS | |
// Here with real values: | |
// | |
// @include font-face('Ashbury', 'AshburyLig-webfont', 'Ashbury', 'serif'); | |
// use with iconmoon: https://icomoon.io/app/#/select/font |
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
/* This generates a manifest file for use with the cordova-app-loader tool: | |
* https://github.com/markmarijnissen/cordova-app-loader | |
*/ | |
/* | |
* You can add settings to your grunt initConfig | |
//jsonmanifest settings | |
jsonmanifest: { | |
generate: { |
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
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener { | |
public static String TAG = EndlessRecyclerOnScrollListener.class.getSimpleName(); | |
private int previousTotal = 0; // The total number of items in the dataset after the last load | |
private boolean loading = true; // True if we are still waiting for the last set of data to load. | |
private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more. | |
int firstVisibleItem, visibleItemCount, totalItemCount; |
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
#!/usr/bin/env node | |
// This plugin replaces text in a file with the app version from config.xml. | |
var wwwFileToReplace = "js/build.js"; | |
var fs = require('fs'); | |
var path = require('path'); | |
var rootdir = process.argv[2]; |
Yoyo. There are more articles/resources available than the below, but most appear to be older. To avoid the pain of upgrading finding things broken, I would try one of these. They're more recent.
- https://www.youtube.com/user/CodersGuide/videos (series on PhoneGap + Material Design using Polymer)
- https://www.youtube.com/watch?v=XL8NG-_Q4ds (Using Polymer with Cordova)
- https://github.com/infomofo/cordova-polymer-template (Cordova Template for working with Polymer - last year, so probably requires an update)
- https://github.com/MobileChromeApps/mobile-chrome-apps (This lets you use cross-walk (on Android) as the WebView, which is significantly faster. Worth trying for your Polymer app if you're targeting hybrid)
Please petition Github to support HTTPS on github pages: https://github.com/contact
Here's what I wrote:
Obviously, a lot of people want HTTPS for github pages:
Until recently, that would be difficult to implement but, as it turns out, the implementation is pretty much complete: