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 | |
require 'Segment.php'; | |
class OdfException extends Exception | |
{} | |
/** | |
* Templating class for odt file | |
* You need PHP 5.2 at least | |
* You need Zip Extension or PclZip library | |
* Encoding : ISO-8859-1 | |
* |
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 | |
# encoding: utf-8 | |
## @package oacs.interactive | |
# Manage the interactive interface using IPython Notebook | |
import sys | |
import IPython.frontend.terminal.ipapp as ipapp | |
#from IPython.frontend.html.notebook import notebookapp # if you want to just import the notebook, but some commandline switches like --ipython-dir won't work |
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/bash | |
# Packets Loss Watch | |
# Simple SHELL script for Linux and UNIX system monitoring with | |
# ping command | |
# | |
# Copyright (c) 2006 nixCraft project <http://www.cyberciti.biz/fb/> | |
# Copyleft 2013 Stephen Larroque | |
# This script is licensed under GNU GPL version 2.0 or above | |
# | |
# This script was inspired by a nixCraft script http://www.cyberciti.biz/tips/simple-linux-and-unix-system-monitoring-with-ping-command-and-scripts.html |
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 | |
# encoding: utf-8 | |
""" | |
QVMDisas.py | |
Created by Macpunk on 2009-09-20. | |
Updated by GrosBedo on 2010-04-12 | |
Copyright (c) 2009 Dalton M. Cummings. All rights reserved. | |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
# Copyright (C) 2001-2007 Martin Blais. All Rights Reserved | |
# Copyright (C) 2010 Bear http://code-bear.com/bearlog/ | |
# Copyright (C) 2013 lrq3000 | |
# Excerpt from SnakeFood to recursively list all imports of modules using AST parsing | |
# Additions to print the versions of each module if available |
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 modulefinder import ModuleFinder | |
finder = ModuleFinder() | |
finder.run_script('yourscript.py') | |
moduleslist = {} | |
for name, mod in finder.modules.iteritems(): | |
filename = mod.__file__ | |
if filename is None: | |
continue |
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
; N-Layer Neural Network semi-vectorized implementation in NetLogo 5.0.4 by Stephen Larroque | |
; This code implements standalone procedure to learn a n-layer neural network in regression/prediction of real-valued outputs or classification using one-vs-all in case of multiple classes. See go-learn for a practical example of usage. | |
; This is a somewhat direct translation from an Octave code, hence the recreation of missing functions like matrix:slice. | |
; This code does not necessitate any external library but the matrix extension, included in the standard NetLogo. | |
; Licensed under Simplified BSD License, feel free to reuse the code. | |
; | |
; TODO: implement nnCheckGradient | |
; TODO: implement classification | |
; TODO: implement optional visualisation, with turtles nodes, links, label on nodes and links with values (both forward and backward), one output node to show the prediction and two controls to disable/enable and for refresh rate |
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 argStruct = getnargs(varargin, defaults, restrict_flag) | |
%GETNARGS Converts name/value pairs to a struct (this allows to process named optional arguments). | |
% | |
% ARGSTRUCT = GETNARGS(VARARGIN, DEFAULTS, restrict_flag) converts | |
% name/value pairs to a struct, with defaults. The function expects an | |
% even number of arguments in VARARGIN, alternating NAME then VALUE. | |
% (Each NAME should be a valid variable name and is case sensitive.) | |
% Also VARARGIN should be a cell, and defaults should be a struct(). | |
% Optionally: you can set restrict_flag to true if you want that only arguments names specified in defaults be allowed. Also, if restrict_flag = 2, arguments that aren't in the defaults will just be ignored. | |
% After calling this function, you can access your arguments using: argstruct.your_argument_name |
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
Q&A Session for Getting Started with Blaze | |
Session number: 665410874 | |
Date: wednesday 8 october 2014 | |
Starting time: 18:48 | |
________________________________________________________________ | |
Flemming Stark - 19:12 | |
Q: earlier this year blz grew apart from blaze and i don't see it here or anywhere. is blz dead? |
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 // Import a zip file and extract it | |
$custom_max_time = 10; | |
$custom_wait_time = 45; | |
$random_wait_time = 5; // plus or minus this value. Set to 0 or false to disable. | |
$time_start = time(); | |
$max_time = ini_get("max_execution_time"); | |
$wait_time = 5; | |
if (!empty($custom_max_time) and $custom_max_time > 0 and $custom_max_time < $max_time) $max_time = $custom_max_time; |
OlderNewer