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
<?lasso | |
define oauth_consumer_key => 'key' | |
define oauth_consumer_secret => 'secret' | |
define oauth_request_token => 'requestkey' | |
define oauth_request_secret => 'requestsecret' | |
define oauth_access_token => 'accesskey' | |
define oauth_access_secret => 'accesssecret' | |
define oauth_realm => 'http://term.ie/' | |
define oauth_request_endpoint => {return 'http://term.ie/oauth/example/request_token.php'} | |
define oauth_access_endpoint => 'http://term.ie/oauth/example/access_token.php' |
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
var path = require('path'); | |
var webpack = require('webpack'); | |
var HtmlwebpackPlugin = require('html-webpack-plugin'); | |
var merge = require('webpack-merge'); | |
var Clean = require('clean-webpack-plugin'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
var pkg = require('./package.json'); | |
var TARGET = process.env.TARGET; |
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"> | |
<title>Datepicker for Bootstrap</title> | |
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<link id="bs-css" href="https://netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet"> | |
<link id="bsdp-css" href="dist/css/bootstrap-datepicker3.min.css" rel="stylesheet"> | |
</head> | |
<body> |
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 cgi | |
import re | |
from docutils.core import publish_parts | |
from pyramid.httpexceptions import HTTPFound | |
from pyramid.view import view_config | |
from ..models import Page | |
# regular expression used to find WikiWords |
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
from pyramid.httpexceptions import ( | |
HTTPNotFound, | |
HTTPFound, | |
) | |
from pyramid.security import ( | |
Allow, | |
Everyone, | |
) | |
from .models import Page |
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
# | |
# Copyright (C) 2013 Vinay Sajip. New BSD License. | |
# | |
import os | |
import os.path | |
from subprocess import Popen, PIPE | |
import sys | |
from threading import Thread | |
from urllib.parse import urlparse | |
from urllib.request import urlretrieve |
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
[//lasso | |
library('mailchimp.lasso'); | |
// create a new mailchimp instance | |
// NOTE: -verifypeer worked fine for me on Linux, but not Windows | |
var('mc') = mailchimp( -key='{YOUR_MAILCHIMP_API_KEY}', -version=3.0, -verifypeer=false); | |
// get all campaigns | |
$mc->get('/campaigns'); | |
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
<?lasso | |
// Demo of blowfish issue | |
define knop_seedbug => { | |
local('seed'= string( server_ip) + string( server_name) + response_localpath) | |
#seed -> removetrailing(response_filepath) | |
return #seed | |
} | |
define knop_blowfishbug => type { |
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>Sortable Demo</title> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/> | |
</head> | |
<body> | |
<!-- Simple List --> |