[^\u0000-\u007F]
[!^\u0000-\u007F]
var request = require("request"); | |
var options = { method: 'POST', | |
url: 'http://couchbase_host:4984/dbname/_session', | |
headers: | |
{ 'postman-token': '655ec530-e665-6bdf-ac52-2bcf62ff14ab', | |
'cache-control': 'no-cache', | |
'content-type': 'application/json' }, | |
body: { name: 'username', password: 'password' }, | |
json: true }; |
"Display state tron": { | |
"prefix": "displayState", | |
"body": [ | |
"console.tron.display({", | |
"\t$3name: 'State',", | |
"\t$3value: this.state,", | |
"});" | |
], | |
"description": "Log state to tron" | |
} |
{ | |
"log": ["*"], | |
"databases": { | |
"db": { | |
"server": "http://192.168.5.103:8091/", | |
"bucket": "default", | |
"users": { "GUEST": { "disabled": false, "admin_channels": ["*"] } } | |
} | |
} | |
} |
(function(window){ | |
function SoundTest(){ | |
this.browserTest = function browserTest(){ | |
console.log("browser test"); | |
}; | |
module.exports = { | |
renderController : require('./renderController.v1.js') | |
}; |
<?php | |
/** | |
* Created by PhpStorm. | |
* User: beka | |
* Date: 4/4/16 | |
* Time: 11:59 AM | |
*/ | |
namespace LSCore; |
function allowCrossDomain(req, res, next) { | |
res.header('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE'); | |
res.header('Access-Control-Allow-Headers', 'X-Requested-With,content-type'); | |
res.header('Access-Control-Allow-Credentials', true); | |
var origin = req.headers.origin; | |
if (_.contains(config.allowed_origins, origin)) { | |
res.setHeader('Access-Control-Allow-Origin', origin); |
/** | |
* Created by beka on 4/10/16. | |
*/ | |
module.exports = { | |
base64_encode: function (file){ | |
var fs = require('fs'); | |
var bitmap = fs.readFileSync(file); | |
return new Buffer(bitmap).toString('base64'); |
var MenuCategories = React.createClass({ | |
getInitialState: function() { | |
return { | |
data: [], | |
temp : "beka tomashvili" | |
}; | |
}, | |
componentDidMount: function() { | |
this.serverRequest = $.get(this.props.source, function (result) { |