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
$ curl -XPUT -d '{ | |
"_id": "org.couchdb.user:foobar1", | |
"name": "foobar1", | |
"type": "user", | |
"roles": [], | |
"password": "plaintext_password" | |
}' http://host:port/_users/org.couchdb.user:foobar1 | |
{"ok":true,"id":"org.couchdb.user:foobar1","rev":"1-feed66a63c5cf324addc54b81314de34"} |
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
> scons-1.2.0.bat -s debug=1 sdkinstaller run=1 | |
... | |
runs fine for a while, until: | |
... | |
cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be | |
removed in a future release | |
cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be | |
removed in a future release | |
boot_win32.cpp | |
'rc' is not recognized as an internal or external command, |
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 | |
// components/SiteMap.php | |
class SiteMap | |
{ | |
static private $uiModulePrefix = '/nav'; | |
static public $map; |
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
# This patch file was generated by NetBeans IDE | |
# It uses platform neutral UTF-8 encoding and \n newlines. | |
--- vendor/clevertech/yiibooster/src/widgets/input/TbInputHorizontal.php | |
+++ vendor/clevertech/yiibooster/src/widgets/input/TbInputVertical.php | |
@@ -1,62 +1,33 @@ | |
<?php | |
/** | |
- * TbInputHorizontal class file. | |
+ * TbInputVertical class file. | |
* @author Christoffer Niska <ChristofferNiska@gmail.com> |
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 | |
// YiiBooster with pull #601 | |
$input = $this->widget('P3MediaSelect', array('model' => $model, 'attribute' => 'original_media_id'), true); | |
echo $form->customRow($model, 'original_media_id', $input); | |
// YiiStrap | |
$input = $this->widget('P3MediaSelect', array('model' => $model, 'attribute' => 'original_media_id'), true); | |
echo TbHtml::customActiveControlGroup($input, $model, 'original_media_id'); | |
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
<p> In addition to the default CRUD Generator provided by Gii, this Generator will:</p> | |
<h2>Default template</h2> | |
<ul> | |
<li> Obey model relations and render a appropriate DropDownList/CheckBox/ComboBox</li> | |
<li> Add Yii::t() for every string occuring so that your Application is easily being able to be translated to other languages </li> | |
<li> Add a Jui Datepicker Widget for date Fields </li> | |
<li> Add date() to timestamp, createtime and updatetime fields </li> | |
<li> Generate enum fields to a checkbox containing the possible values </li> |
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 CasperJS | |
{ | |
static public function request($script, stdClass $params = null) | |
{ | |
if (is_null($params)) { | |
$params = new stdClass(); | |
} |
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
<script> | |
function init$gii() { | |
window.giiwin = $('#gii')[0].contentWindow; | |
window.$gii = giiwin.$; | |
} | |
function s1() { | |
init$gii(); | |
var model = $('select[name="model"]').val(); |
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_once("http://localhost:8080/GapcmsJavaBridge/java/Java.inc"); | |
// fake paths for gist | |
$sourceDataPpt = APP_PATH . "/includes/source_data.ppt"; | |
$uploadedPpt = APP_PATH . "/upload/foo_data.ppt"; | |
try { |
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
// include jquery - http://stackoverflow.com/questions/7474354/include-jquery-in-the-javascript-console | |
var jq = document.createElement('script'); | |
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
// ... give time for script to load, then type: | |
jQuery.noConflict(); | |
// define testing function | |
var testProvider = function (provider, term) { |