A quick ToDo app using React JS - basically playing with the fact that it works on CodePen.
A Pen by Adam Moore on CodePen.
{ | |
"installed_packages": | |
[ | |
"auto-save", | |
"Autoprefixer", | |
"Bootstrap 3 Snippets", | |
"CakePHP (Native)", | |
"ColorPicker", | |
"Emmet", | |
"EsFormatter", |
<?php | |
$string = "hrlle worls fff test i all rightt ..." ; | |
$pattern = '/ /'; | |
$string1 = preg_replace($pattern, ' ', $string); | |
//var_dump($string1); | |
//var_dump (preg_replace($pattern, $string1)) ; | |
$string_1 = '%FLBROOKSVILLS$SHERRY$ANNE^16047 TAMPA ST^ ?;6360101362078164784=1908196499040=?#! 346048458 E 2509 ECCECC00000?'; | |
$string_2 = '%FLWEEKI^PIERSON$WILLIAM$HOWARD^11195 MARSH WREN AVE^ ?;6360101662592871391=1810197199310=?#! 346143034 E B 1602 ECCECC00000?'; |
<?php | |
$string = "hrlle worls fff test i all rightt ..." ; | |
$pattern = '/ /'; | |
$string1 = preg_replace($pattern, ' ', $string); | |
//var_dump($string1); | |
//var_dump (preg_replace($pattern, $string1)) ; | |
$string_1 = '%FLSPRING HILL^SANDY$SHAWN$JASON^342 GLENN IVY TER^ ?;6360101953079071446=2012197199060=?#! 34608 E B 1507 ECCECC00000?'; | |
$string_2 = '%FLWEEKI^PIERSON$WILLIAM$HOWARD^11195 MARSH WREN AVE^ ?;6360101662592871391=1810197199310=?#! 346143034 E B 1602 ECCECC00000?'; |
<?php | |
function _uploadLogo($imageName) { | |
$path = 'img/employer/logos/'; | |
if (!empty($this->data['VirtualJobFairExhibitor'])) { | |
if(!move_uploaded_file($this->data['VirtualJobFairExhibitor']['logo']['tmp_name'], $path . $imageName)) { | |
return false; | |
} |
A quick ToDo app using React JS - basically playing with the fact that it works on CodePen.
A Pen by Adam Moore on CodePen.
A Pen by Warren Mira on CodePen.
/** | |
* Created by studio-mac on 2/16/15. | |
*/ | |
var gulp = require('gulp'); | |
var source = require('vinyl-source-stream'); // Used to stream bundle for further handling | |
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var reactify = require('reactify'); | |
var gulpif = require('gulp-if'); |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"./src/react-components/libs/build-sample.jsx":[function(require,module,exports){ | |
var React = require('react') | |
var Test = require("../components/test.jsx"); | |
React.render(React.createElement(HelloTest, null), document.getElementById('test')); | |
/** | |
* Created by studio-mac on 2/16/15. | |
* @credits - https://www.codementor.io/reactjs/tutorial/react-js-browserify-workflow-part-2 | |
*/ | |
var gulp = require('gulp'); | |
var source = require('vinyl-source-stream'); // Used to stream bundle for further handling | |
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var reactify = require('reactify'); |
var webpack = require('webpack'); | |
var commonsPlugin = new webpack.optimize.CommonsChunkPlugin('common.js'); | |
module.exports = { | |
entry: { | |
Alerts: './webroot/js/src/alerts.js' | |
}, | |
output: { | |
path: './webroot/js/build/', |