EGit is a plugin to use git within any Eclipse-based IDE, including Lasso Lab.
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
[//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
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
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 wsgiref.simple_server import make_server | |
from pyramid.config import Configurator | |
from pyramid.response import Response | |
def hello_world(request): | |
return Response('<h1>Hello World!</h1>') | |
if __name__ == '__main__': |
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
if: (self -> 'lockfield') != ''; | |
(self -> 'lockvalue')=(field: (self -> 'lockfield')); | |
(self -> 'lockvalue_encrypted')=(encrypt_blowfish: (field: (self -> 'lockfield')), -seed=(self -> 'lock_seed')); | |
/if; |
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
Video demo at http://screencast.com/t/WcjpL2lc. | |
By default it uses a title field ending in [title] or [name] as the source field, and a field ending in [slug] as the destination. This matches the naming conventions for a framework like CakePHP, i.e. <?php echo $form->input('title'); ?> outputs an input with a name of data[Model][title]. | |
You can override the default source and destination fields by setting document.slugField and document.titleField in JavaScript beforehand: | |
<script> | |
document.titleField = "input[name$='[heading]']"; | |
document.slugField = "input[name$='[url_safe_heading]']"; | |
</script> |
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> |