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
{ | |
"name": "Audio", | |
"description": "An audio player for KaiOS", | |
"launch_path": "/index.html", | |
"theme": "#873eff", | |
"theme_color": "#873eff", | |
"background_color": "#873eff", | |
"icons": { | |
"16": "/icons/icon16x16.png", | |
"48": "/icons/icon48x48.png", |
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
window.addEventListener("load", function() { | |
navigator.mozBluetooth.onattributechanged = function() { | |
console.log('onattributechanged'); | |
navigator.mozBluetooth.defaultAdapter.stopDiscovery() | |
.then(function() { | |
return navigator.mozBluetooth.defaultAdapter.startDiscovery(); | |
}) | |
.then(function(handler) { | |
handler.ondevicefound = function(event) { |
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
/*! | |
* Webogram v0.7.0 - messaging web application for MTProto | |
* https://github.com/zhukov/webogram | |
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com> | |
* https://github.com/zhukov/webogram/blob/master/LICENSE | |
*/ | |
angular.module('izhukov.utils', []) | |
.provider('Storage', function () { |
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 'package:flutter/material.dart'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( | |
title: 'Flutter Demo', | |
theme: new ThemeData( |
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
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
use Pimple\Container; | |
class MY_Controller extends CI_Controller { | |
public $container; // declare new variable to assign Container instance | |
public function __construct() { |
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
package main | |
import ( | |
"fmt" | |
"github.com/PuerkitoBio/goquery" | |
"gopkg.in/headzoo/surf.v1" | |
"log" | |
"os" | |
"regexp" | |
"strings" |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"strings" | |
"github.com/PuerkitoBio/goquery" | |
) |
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
// source: http://doublespringlabs.blogspot.com.br/2012/11/decoding-polylines-from-google-maps.html | |
function decode(encoded){ | |
// array that holds the points | |
var points=[ ] | |
var index = 0, len = encoded.length; | |
var lat = 0, lng = 0; | |
while (index < len) { | |
var b, shift = 0, result = 0; |
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
$app->add(function (Request $request, Response $response, $next) { | |
if ($request->getUri()->getScheme() !== 'https') { | |
$uri = $request->getUri()->withScheme("https")->withPort(null); | |
return $response->withRedirect( (string)$uri ); | |
} else { | |
return $next($request, $response); | |
} | |
}); |
NewerOlder