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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Jewish Calendar</title> | |
<style> | |
html, | |
body { | |
margin: 0; |
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
<div id="hebcal-omer"></div> | |
<script defer> | |
function pad2(number) { | |
if (number < 10) { | |
return '0' + number; | |
} | |
return '' + number; | |
} | |
let dt = new Date(); | |
if (dt.getHours() > 19) { |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Jewish Calendar</title> | |
<style> | |
html, body { | |
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; | |
font-size: 14px; | |
} | |
</style> |
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
#cloud-config | |
package_upgrade: true | |
packages: | |
- strongswan | |
- strongswan-plugin-eap-mschapv2 | |
- moreutils | |
- iptables-persistent | |
- unattended-upgrades |
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 | |
RECIPE="$1" | |
OUTFILE=`mktemp /tmp/news.XXXXXXXXXX.mobi` | |
ADDRESS="example_1234567@kindle.com" | |
# uses heirloom-mailx on Ubuntu which supports -a for attachments | |
/opt/calibre/ebook-convert \ | |
"$RECIPE.recipe" $OUTFILE --output-profile kindle && \ |
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
<!DOCTYPE html> | |
<html><head> | |
<meta charset="UTF-8"> | |
<title>Example</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
</head> | |
<body> | |
<div id="results"></div> | |
<script> | |
document.addEventListener('DOMContentLoaded', function() { |
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
# Example YAML to get you started quickly. | |
# Be aware that YAML has indentation based scoping. | |
# Code completion support is available so start typing for available options. | |
swagger: '2.0' | |
# This is your document metadata | |
info: | |
version: "1.0.0" | |
title: Hebcal API | |
description: Jewish Calendar, Hebrew Date Converter, Holidays |
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
.hebcal-container { | |
font-family: "Gill Sans MT","Gill Sans",GillSans,Arial,Helvetica,sans-serif; | |
font-size: small; | |
} | |
.hebcal-container h3 { | |
font-family: Georgia,Palatino,"Times New Roman",Times,serif; | |
} | |
ul.hebcal-results { list-style-type:none } | |
ul.hebcal-results li { | |
margin-bottom: 11px; |
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
import org.apache.spark.rdd.RDD | |
def winsorize(data: RDD[Double], limits:(Double,Double)): RDD[Double] = { | |
val r = data.sortBy(x => x) | |
val c = r.count() | |
if (c <= 2) r | |
else { | |
val n0 = limits._1 * (c + 1d) | |
val n1 = limits._2 * (c + 1d) | |
val k0 = n0.toLong |
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
{ | |
"title":"São Paulo, Brazil", | |
"date":"2015-02-20T19:37:54-00:00", | |
"link":"https://www.hebcal.com/shabbat?geonameid=3448439;m=50;c=on;maj=on;nx=on;geo=geoname", | |
"location":{ | |
"city":"São Paulo", | |
"longitude":-46.63611, | |
"title":"São Paulo, Brazil", | |
"geonameid":3448439, | |
"tzid":"America/Sao_Paulo", |
NewerOlder