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
var path = require('path'); | |
module.exports = { | |
getAssetExts() { | |
return [ | |
'ts', | |
'tsx' | |
] | |
}, | |
getTransformModulePath() { | |
return path.join(__dirname, 'transformer.js'); |
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
class RequestTracker extends React.Component { | |
static propTypes = { | |
requestId: React.PropTypes.number.isRequired, | |
success: React.PropTypes.func, | |
fail: React.PropTypes.func, | |
always: React.PropTypes.func | |
} | |
constructor(props) { |
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
class SomeComponent extends React.Component { | |
getInitialState() { | |
return { | |
requestId: null | |
} | |
} | |
createArticleSuccess() { | |
// Do stuff on success.. |
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
define [ | |
# Libs | |
chaplin | |
underscore | |
jquery | |
# Models | |
modules/somewidget/models/mymodel | |
modules/somewidget/models/anothermodel | |
# Views | |
modules/somewidget/views/test |
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
fs = require('fs') | |
http = require('http') | |
https = require('https') | |
express = require('express') | |
path = require 'path' | |
_ = require('underscore') | |
sessionToken = "secretString" | |
secretUploadPass = "Change me" | |
secretPass = "Change me too" |
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
define [ | |
'jquery' | |
'underscore' | |
'backbone' | |
'lib/gui' | |
'models/notification' | |
'views/notification' | |
'vendor/tween' | |
'jquery-ui' |
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 | |
$css = $_GET['path']; | |
$less = str_replace(".css",".less",$css); | |
file_exists($less) and $compiled_css = str_replace(".css", filemtime($less) . ".css", $_GET['path']); | |
if (!empty($compiled_css) and !file_exists($compiled_css)) | |
{ | |
header("Content-type: text/css"); | |
$less_command = "/var/www/node/node_modules/less/bin/lessc ".realpath($less)." ".realpath($compiled_css); | |
shell_exec($less_command); |