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
L.TileLayer.Bing = L.TileLayer.extend({ | |
supportedTypes: ['Road', 'Aerial', 'AerialWithLabels'], | |
attributionTemplate: '<span style="display:inline-block">' + | |
'<a target="_blank" href="http://www.bing.com/maps/">' + | |
'<img src="{logo}" /></a><br><span>{copyrights}' + | |
'<a style="white-space: nowrap" target="_blank" '+ | |
'href="http://www.microsoft.com/maps/product/terms.html">' + | |
'Terms of Use</a></span></span>', |
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
// Details: StackOverflow (http://stackoverflow.com/a/614397/18771) | |
// License: cc-by-sa (http://creativecommons.org/licenses/by-sa/3.0/) | |
// Extends: jQuery Tablesorter 2.0+ (http://tablesorter.com) | |
// ------------------------------------------------------------------- | |
// file encoding must be UTF-8! | |
function getTextExtractor() | |
{ | |
return (function() { | |
var patternLetters = /[öäüÖÄÜáàâéèêúùûóòôÁÀÂÉÈÊÚÙÛÓÒÔß]/g; |
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
// TODO: options parser with overrides for projection, area etc. | |
if (process.argv.length != 4) { | |
console.error("usage: node convert.js <input.json> <output.json>"); | |
process.exit(1); | |
} | |
require('d3') | |
require('./node_modules/d3-plugins/simplify/simplify.js') | |
var fs = require('fs'); |
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
/** | |
* Get values in range | |
* | |
* @param {String} rangeA1 The range in A1 notation | |
* | |
* @return {Array} array with non-filtered values | |
*/ | |
function getValues (rangeA1) { | |
// Get range |
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
#!/bin/sh | |
# Use like this: | |
# | |
# minify-js.sh < app.js > app.min.js | |
# | |
curl -s \ | |
-d compilation_level=SIMPLE_OPTIMIZATIONS \ | |
-d output_format=text \ |
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
<?php | |
// apitest.php | |
// by Karl Kranich - karl.kranich.org | |
// version 3.1 - edited query section | |
require_once realpath(dirname(__FILE__) . '/vendor/autoload.php'); | |
include_once "google-api-php-client/examples/templates/base.php"; | |
$client = new Google_Client(); |
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
<?php | |
class Weather { | |
public $lat, $long, $weather, $location; | |
private $weather_data, $location_data; | |
| |
public function __construct($lat=0.0, $long=0.0){ | |
$this->lat = (float) $lat; | |
$this->long = (float) $long; | |
} | |
|
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
<?php | |
$text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. <code>Donec sed erat</code> vel diam ultricies commodo. | |
Nunc venenatis tellus eu quam suscipit quis fermentum <code>dolor vehicula.</code> fin"; | |
$regex=''; | |
$regex = '#<\s*?code\b[^>]*>(.*?)</code\b[^>]*>#s'; | |
$code = preg_match_all($regex, $text, $matches); | |
echo $text."<hr>"; | |
echo var_export($matches,true); | |
?> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/* | |
-------------------------------- | |
imgur Upload | |
-------------------------------- | |
+ https://github.com/pinceladasdaweb/imgur-upload | |
+ version 1.1 | |
+ Copyright 2014 Pedro Rogerio | |
+ Licensed under the MIT license | |
+ Documentation: https://github.com/pinceladasdaweb/imgur-upload |
OlderNewer