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
const fetch = require('node-fetch'); | |
/** | |
* Validate the given email address using CampaignKit.cc | |
*/ | |
const validateEmail = async (event) => { | |
const token = event.secrets.TOKEN; | |
const { user: { email } } = event; | |
const body = { | |
emails: [email], |
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
define([ | |
'CollectionExtend', | |
'underscore', | |
'backbone', | |
'models/UserModel' | |
], function (Collection, _, Backbone, UserModel) { | |
'use strict'; | |
Collection.namespace = 'users'; |
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 ruby | |
require 'rubygems' | |
require 'set' | |
require 'net/http' | |
require "net/https" | |
require 'json' | |
require 'pathname' | |
config_file = "#{ENV['HOME']}/.changelog" |
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
15:02:51.783 [http-8080-2] INFO io.leon.unitofwork.UOWManager - Starting new unit of work for thread [Thread[http-8080-2,5,main]] with context [org.apache.catalina.connector.RequestFacade@ffce2f2]. | |
15:02:52.032 [http-8080-2] DEBUG i.l.w.r.ExposedUrlCheckFilter - Requested exposed URL /leon/comet/connect | |
15:02:52.406 [http-8080-2] ERROR org.atmosphere.cpr.AtmosphereServlet - AtmosphereServlet exception | |
java.lang.IllegalStateException: !(Jetty || Servlet 3.0 || ContinuationFilter) | |
at org.eclipse.jetty.continuation.ContinuationSupport.getContinuation(ContinuationSupport.java:145) ~[jetty-continuation-7.0.2.v20100331.jar:7.0.2.v20100331] | |
at org.atmosphere.container.Jetty7CometSupport.service(Jetty7CometSupport.java:78) ~[atmosphere-runtime-0.7.1.jar:0.7.1] | |
at org.atmosphere.container.Jetty8WebSocketSupport.service(Jetty8WebSocketSupport.java:72) ~[atmosphere-runtime-0.7.1.jar:0.7.1] | |
at org.atmosphere.cpr.AtmosphereServlet.doCometSupport(AtmosphereServlet.java:1185) [atmosphere-runtime-0.7.1.jar:0.7.1] | |
at or |
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 net.liftweb._ | |
import record._ | |
import record.field._ | |
object State extends State | |
sealed abstract class State extends Enumeration("created", "destroyed") { | |
type State = Value | |
val Created, Destroyed = Value | |
} |
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 code.lib | |
import net.liftweb._ | |
import http._ | |
import util._ | |
import Helpers._ | |
import common._ | |
import mongodb._ | |
import com.mongodb._ |
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 | |
exec scala "$0" "$@" | |
!# | |
/* | |
Basic script to import comments from a Apache Roller site to disqus.com. | |
The script reads the entries and comments rss feeds from the roller website and generates a simple wxr file | |
that can be imported by disqus.com. | |
usage: roller_wxr_exporter.scala http://your_domain.com/your_blog |