Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
##React snippets
/** | |
* React dropdown component | |
* Usage: <DropDown selected={selectedValue} items={keyValueObject} onChange={this.externalDropdownOnChangeMethod} /> | |
* | |
* //For example: | |
* var keyValueObject = {0 =>'Value 0', 1 => 'Value 1'}; | |
* | |
* //External on dropdown change method | |
* externalDropdownOnChangeMethod(e){ | |
* var value = e.target.value; |
var INPUT_TYPES = 'color|date|datetime|datetime-local|file|month|number|password|range|search|tel|text|time|url|week'.split('|') | |
var App = React.createClass({ | |
getInitialState: function() { | |
return {} | |
}, | |
onChange: handleFormInputChange, | |
render: function() { |
<?php namespace Alfanso\Services\Jvzoo; | |
class Jvzoo { | |
public function isValidRequest($data) { | |
$jvzooSecretKey = config('jvzoo.secret_key'); | |
$receivedVerificationCode = $data['cverify']; | |
// remove cverify from the array since we don't use that | |
unset($data['cverify']); |
**INLCUDE htpasswd** | |
To generate .htpasswd: | |
htpasswd -c ./.htpasswd admin | |
Add this in .htaccess: | |
AuthUserFile /home/test/public_html/.htpasswd | |
AuthGroupFile /dev/null |
<?php | |
function manage_mypostype_custom_column( $column, $post_id ) { | |
global $post; | |
switch( $column ) { | |
case 'category': | |
$terms = get_the_terms( $post_id, 'mypostype-category' ); | |
if($terms[0]){ | |
$theCategory = $terms[0]->name; |
0 info it worked if it ends with ok | |
1 verbose cli [ '/usr/local/bin/node', '/usr/bin/npm', 'i', '-g', 'npm@latest' ] | |
2 info using npm@3.10.10 | |
3 info using node@v8.4.0 | |
4 silly loadCurrentTree Starting | |
5 silly install loadCurrentTree | |
6 silly install readGlobalPackageData | |
7 silly fetchPackageMetaData npm@latest | |
8 silly fetchNamedPackageData npm | |
9 silly mapToRegistry name npm |
Cucumber ('*.feature') | |
abap ('*.abap') | |
ada ('*.adb', '*.ads', '*.ada') | |
ahk ('*.ahk', '*.ahkl') | |
apacheconf ('.htaccess', 'apache.conf', 'apache2.conf') | |
applescript ('*.applescript') | |
as ('*.as') | |
as3 ('*.as') | |
asy ('*.asy') | |
bash ('*.sh', '*.ksh', '*.bash', '*.ebuild', '*.eclass') |