Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
// An example controller binded to the form | |
function FormCntl($scope, $compile) { | |
// Consider using FosJsRouting bundle, if you want to use a Symfony2 route | |
$scope.formUrl = "http://url-to-fetch-my-form"; | |
// Data from the form will be binded here | |
$scope.data = {}; | |
// Method called when submitting the form | |
$scope.submit = function() { |
var gulp = require('gulp') | |
, concat = require('gulp-concat') | |
, uglify = require('gulp-uglify') | |
, watch = require('gulp-watch') | |
, sass = require('gulp-ruby-sass') | |
, autoprefixer = require('gulp-autoprefixer') | |
, spritesmith = require("gulp.spritesmith") | |
, minifyCSS = require('gulp-minify-css') | |
, plumber = require('gulp-plumber') | |
, jade = require('gulp-jade') |
var gulp = require('gulp'); | |
var paths = require('../paths'); | |
var jspm = require('jspm/api'); | |
gulp.task('bundle', function (done) { | |
jspm.bundle( | |
[ | |
'*', | |
'aurelia-skeleton-navigation/*', | |
'aurelia-bootstrapper', |
# Make a directory | |
mkdir ~/mosquitto | |
cd ~/mosquitto | |
# Get mosquitto for CentOS 6 and locally unpack it | |
wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/oojah:/mqtt/RedHat_RHEL-6/x86_64/mosquitto-1.2-6.1.x86_64.rpm | |
rpm2cpio mosquitto-*.rpm | cpio -idmv | |
mosquitto-*.rpm | |
# Set up ~/service on uberspace |
import axios from 'axios'; | |
// You can use any cookie library or whatever | |
// library to access your client storage. | |
import cookie from 'cookie-machine'; | |
axios.interceptors.request.use(function(config) { | |
const token = cookie.get(__TOKEN_KEY__); | |
if ( token != null ) { | |
config.headers.Authorization = `Bearer ${token}`; |
/** | |
* Example to refresh tokens using https://github.com/auth0/node-jsonwebtoken | |
* It was requested to be introduced at as part of the jsonwebtoken library, | |
* since we feel it does not add too much value but it will add code to mantain | |
* we won't include it. | |
* | |
* I create this gist just to help those who want to auto-refresh JWTs. | |
*/ | |
const jwt = require('jsonwebtoken'); |
For Android: | |
Manually change it in android/app/src/main/java/com/PROJECT_NAME/MainActivity.java: | |
package MY.APP.ID; | |
In android/app/src/main/java/com/PROJECT_NAME/MainApplication.java: | |
package MY.APP.ID; | |
In android/app/src/main/AndroidManifest.xml: | |
package="MY.APP.ID" |
Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
//Change Tools/Partition/Scheme to Minimal SPIFFS (Large APPS with OTA) | |
//IR sensor set at GPIO13 | |
//Must Insert SD card | |
#include "esp_camera.h" | |
#include <WiFi.h> | |
#include "esp_timer.h" | |
#include "img_converters.h" | |
#include "Arduino.h" | |
#include "fb_gfx.h" |