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 ar.com.hjg.pngj.FilterType; | |
import ar.com.hjg.pngj.ImageInfo; | |
import ar.com.hjg.pngj.ImageLineByte; | |
import ar.com.hjg.pngj.PngWriter; | |
import ar.com.hjg.pngj.PngjException; | |
import java.awt.image.BufferedImage; | |
import java.awt.image.DataBuffer; | |
import java.awt.image.Raster; | |
import java.awt.image.SinglePixelPackedSampleModel; |
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
/* eslint-env node */ | |
const buble = require('buble'); | |
const loaderUtils = require('loader-utils'); | |
const path = require('path'); | |
module.exports = function BubleLoader(source) { | |
this.cacheable && this.cacheable(); | |
const options = Object.assign({transforms: {modules: false}}, loaderUtils.getOptions(this)); | |
const transformed = buble.transform(source, options); |
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
openjdk version "1.8.0_144" | |
OpenJDK Runtime Environment (build 1.8.0_144-b01) | |
OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode) | |
12/21/17 | |
ar 21/12/17 | |
ar_AE 21/12/17 | |
ar_BH 21/12/17 | |
ar_DZ 21/12/17 | |
ar_EG 21/12/17 |
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
#!/bin/sh | |
set -e | |
# setup ssh-agent and provide the GitHub deploy key | |
eval "$(ssh-agent -s)" | |
openssl aes-256-cbc -K $encrypted_dc4c0df7bb33_key -iv $encrypted_dc4c0df7bb33_iv -in id_ed25519.enc -out id_ed25519 -d | |
chmod 600 id_ed25519 | |
ssh-add id_ed25519 | |
# commit the assets in build/ to the gh-pages branch and push to GitHub using SSH |
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
#! /bin/bash | |
cd $(dirname $0) | |
verLocal=$(cat josm_version) | |
verRemote=$(wget -qO - http://josm.openstreetmap.de/latest) | |
echo local $verLocal remote $verRemote | |
if [ $verLocal -lt $verRemote ]; then |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# /etc/caddy/Caddyfile | |
cloud.example.com { | |
root /srv/http/nextcloud/ | |
fastcgi / localhost:7070 php { | |
root /var/www/html/ | |
} | |
timeouts 30m | |
} |
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 com.google.common.collect.Range; | |
import java.time.Duration; | |
import java.time.Instant; | |
import java.time.Period; | |
import java.time.ZoneId; | |
import java.time.ZonedDateTime; | |
import java.time.format.DateTimeParseException; | |
import java.time.temporal.TemporalAmount; | |
import java.util.Objects; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Using optional BOM (0xEF 0xBB 0xBF) --> | |
<!-- From http://forum.openstreetmap.org/viewtopic.php?id=7186 --> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
targetNamespace="http://openstreetmap.org/osm/0.6" | |
xmlns="http://openstreetmap.org/osm/0.6"> | |
<xs:element name="osm"> | |
<xs:complexType> | |
<xs:sequence> |
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
angular.module('app').config(function($httpProvider) { | |
$httpProvider.interceptors.push(delayHttp); | |
function delayHttp($timeout) { | |
return { | |
response: function(response) { | |
return $timeout(angular.identity, Math.random() * 1000, true, response); | |
} | |
}; | |
} |