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
4c2ec063a84eb056c11550fef1a4b0cccf1b4bcb6d5ef3d71d98bdf86030f5db |
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
aa58a71474fee53342b45c025a1bcf3329dfaa78cf5f86cf2f9d6f70d1705313 |
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); |