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
<?php | |
# define package usage | |
use libs\vecni\http\Response; | |
use libs\vecni\http\Request; | |
use libs\vecni\Vecni as app; | |
use libs\vecni\Session as session; | |
use controller\user\User; | |
use controller\property; | |
User::start_session(); |
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
<?php | |
namespace libs\mysql; | |
class PDODbImporter{ | |
private static $keywords = array( | |
'ALTER', 'CREATE', 'DELETE', 'DROP', 'INSERT', | |
'REPLACE', 'SELECT', 'SET', 'TRUNCATE', 'UPDATE', 'USE', | |
'DELIMITER', 'END' | |
); |
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
Lets Call the js below bv.libs.js file. | |
```Javascript | |
var bv = { | |
message: { | |
notEmpty: 'This field is required and can\'t be empty.' | |
}, | |
validators:{ | |
enable_only: { | |
enabled: { |
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
APPENGINE_PATH = /usr/local/google_appengine | |
APPENGINE_APPCFG = /usr/local/google_appengine/appcfg.py | |
APP_PATH = $(shell pwd) | |
MAIN_PATH = ${APP_PATH}/main | |
USER = $(shell whoami) | |
USER_HOME = /home/${USER} | |
flush: | |
python run.py -f |
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
<?php | |
namespace libs\schedule; | |
require_once "setup.php"; | |
use libs\vecni\Vecni; | |
use libs\mongodb\Model; | |
use libs\user\User; | |
use libs\location\Location; | |
use libs\schedule\Event; | |
class Calendar extends Model{ |
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
$(function() { | |
/* initialize the external events | |
-----------------------------------------------------------------*/ | |
function ini_events(ele) { | |
ele.each(function() { | |
// create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/) | |
// it doesn't need to have a start or end | |
var eventObject = { |
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
// JSON data of your current logged in user. | |
current_user = {"first_name": "Oshane", "last_name": "Bailey", "email": "[email protected]"}; | |
var purechat_user_interval = {"obj": undefined, "num_tries": 0}; | |
// Initiate the PureChat plugin onload (async). In addition, set the user | |
// name and email as soon as PureChat initiation process is completed. | |
(function () { | |
var done = false; | |
var script = document.createElement('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
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head><title></title></head> | |
<body> | |
<p tal:content="here/getBody_pre | nothing" /> | |
<dl> | |
<tal:block repeat="field options/wrappedFields | nothing"> | |
<dt tal:content="field/fgField/widget/label" /> | |
<dd tal:content="structure python:field.htmlValue(request)" /> |
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 Products.CMFCore.utils import getToolByName | |
mailhost = getToolByName(ploneformgen, 'MailHost') | |
subject = "Email subject" | |
# Use this logger to output debug info from this script if needed | |
import logging | |
logger = logging.getLogger("mailer-logger") |
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 config | |
from flask import Flask | |
app = Flask(__name__) | |
app.config.from_object(config) | |
# Jinja2 templates commenting tags | |
app.jinja_env.line_statement_prefix = '#' | |
app.jinja_env.line_comment_prefix = '##' |
OlderNewer