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
var gulp = require('gulp'); | |
var babel = require("gulp-babel"); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); | |
gulp.task('default', () => { | |
return gulp.src('js/main.js') | |
.pipe(sourcemaps.init()) | |
.pipe(babel({ |
##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; |
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') |
<?php | |
/////////////////////////////////////////////////// | |
// STEP 1 - CREATE CLASS THAT WILL BE USED GLOBALY | |
/////////////////////////////////////////////////// | |
namespace App\MyApp; | |
class MyApp { | |
public function sayHello($data = []) | |
{ | |
echo "Hello World from Facade!"; | |
} |
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 |