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 resolve from '@rollup/plugin-node-resolve'; | |
import replace from '@rollup/plugin-replace'; | |
import commonjs from '@rollup/plugin-commonjs'; | |
import svelte from 'rollup-plugin-svelte'; | |
import babel from '@rollup/plugin-babel'; | |
import { terser } from 'rollup-plugin-terser'; | |
import config from 'sapper/config/rollup.js'; | |
import pkg from './package.json'; | |
import json from '@rollup/plugin-json'; |
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
<h2>reCAPTCHA without form / AJAX only</h2> | |
<div class="panel panel-warning" id="panel-recaptcha"> | |
<div class="panel-heading"> | |
<h3 class="panel-title">Captcha</h3> | |
</div> | |
<div class="panel-body"> | |
<div id="recaptcha-service" class="g-recaptcha" | |
data-callback="recaptchaCallback" | |
data-sitekey=""></div> |
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
package controllers | |
import play.api._ | |
import play.api.mvc._ | |
import scala.concurrent.Future | |
/** | |
* Provide security features via `ActionBuilder` | |
*/ |
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
package models | |
import play.api.libs.functional.syntax._ | |
import play.api.libs.json._ | |
import play.api.libs.json.util._ | |
import play.api.libs.json.Reads._ | |
import play.api.data.validation.ValidationError | |
case class User(meta: Option[String], name: String, email: String) |
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
#!/usr/bin/env python | |
import sys | |
import psycopg2 | |
# http://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING | |
CONNECTION_STRING = None | |
PROPERTY_NAME = 'urn:ietf:params:xml:ns:caldav:supported-calendar-component-set' | |
PROPERTY_VALUE = '<comp name="VEVENT" xmlns="urn:ietf:params:xml:ns:caldav"/>' |