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 | |
class db | |
{ | |
private $_dsn = ''; | |
private $_username = null; | |
private $_password = null; | |
private $_pdo = null; | |
public function __construct($cli) | |
{ |
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 | |
class echoTask extends \Phalcon\CLI\Task | |
{ | |
public function mainAction() | |
{ | |
echo "echoMainAction\n"; | |
} | |
} |
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
diff --git a/config.json b/config.json | |
index 8183eec..b5cf118 100644 | |
--- a/config.json | |
+++ b/config.json | |
@@ -28,6 +28,16 @@ | |
"phalcon/mvc/model/query/parser.c", | |
"phalcon/mvc/view/engine/volt/parser.c", | |
"phalcon/mvc/view/engine/volt/scanner.c", | |
+ "phalcon/mvc/view/engine/markdown/parser.c", | |
+ "phalcon/mvc/view/engine/markdown/autolink.c", |
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
--- a/cphalcon/unit-tests/ConfigTest.php | |
+++ b/cphalcon/unit-tests/ConfigTest.php | |
@@ -293,12 +293,22 @@ class ConfigTest extends PHPUnit_Framework_TestCase | |
public function testYamlConfig() | |
{ | |
+ if (!extension_loaded('yaml')) { | |
+ $this->markTestSkipped('Warning: yaml extension is not loaded'); | |
+ return false; | |
+ } |
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
%global proj_name cphalcon | |
%global pecl_name phalcon | |
%global pecl_version 2.0.1 | |
%{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}} | |
%global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1) | |
%{!?php_extdir: %{expand: %%global php_extdir %(php-config --extension-dir)}} | |
%{?filter_provides_in: %filter_provides_in %{php_extdir}/.*\.so$} | |
%{?filter_setup} | |
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}%{php_extdir}/.*\\.so$ |
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
/* Crossroad I/O Client */ | |
#include "xs/xs.h" | |
#include <string.h> | |
int main(int argc, char **argv) | |
{ | |
void *ctx = xs_init(); | |
void *backend = xs_socket(ctx, XS_DEALER); | |
//xs_bind (backend, "ipc://backend"); | |
xs_bind (backend, "tcp://127.0.0.1:5570"); | |
xs_msg_t msg; |
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
;;; snapshot | |
(defun snapshot () | |
(interactive) | |
(let ((msg (read-from-minibuffer "comment: "))) | |
(if (> (length msg) 0) | |
(shell-command (concat "~/bin/snapshot -m \"" msg "\" " (buffer-file-name))) | |
(shell-command (concat "~/bin/snapshot " (buffer-file-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
--- a/msgpack.h | |
+++ b/msgpack.h | |
@@ -9,103 +9,13 @@ | |
#include <stdint.h> | |
#endif | |
-#if HAVE_ARPA_INET_H | |
-#include <arpa/inet.h> | |
-#endif | |
- |
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 | |
usage() | |
{ | |
echo "Usage: "${0##*/}" [-s FILES] [-t TOKEN] [-g DIR] [-h] [-v]" | |
echo "" | |
echo "Options:" | |
echo " s: source files" | |
echo " t: secret repo token for your repository" | |
echo " g: search gcov/gcda file path" |
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 | |
files=(libtool ltmain.sh) | |
srcdir=`pwd` | |
IFS=$'\n' | |
for file in ${files[@]} | |
do | |
if [ ! -f ${srcdir}/${file} ]; then | |
continue |
OlderNewer