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
'use strict'; | |
var config = require('../config'); | |
var gulp = require('gulp'); | |
var gulpif = require('gulp-if'); | |
var gutil = require('gulp-util'); | |
var source = require('vinyl-source-stream'); | |
var streamify = require('gulp-streamify'); | |
var watchify = require('watchify'); | |
var browserify = require('browserify'); |
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
delay_search_input: (ev) -> | |
ev.preventDefault() | |
clearTimeout(@delay_id) | |
@delay_id = _.delay () => | |
value = $(ev.target).val() | |
,1500 |
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
module.exports = class MainController extends Marionette.Object | |
queuMethod: false | |
initialize: -> | |
App.vent.on 'profile:ready', () => | |
if @queuMethod | |
@[@queuMethod](@queuArgs) | |
@queuMethod = false | |
dashboard: -> |
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
events: | |
"blur form input": "validateInput" | |
validateInput: (ev) -> | |
$input = $(ev.target) | |
input_name = $(ev.target).attr 'name' | |
input_value = $(ev.target).val() | |
if input_value.length | |
@model.set input_name, input_value | |
@model.isValid input_name |
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
# -*- coding: utf-8 -*- | |
import json | |
import tornado.ioloop | |
import tornado.web | |
from toredis import Client | |
import sockjs.tornado | |
from util.utils import AESCipher | |
from util.coin_api import config |
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
op.add_column('projects', sa.Column('is_closed', sa.Boolean(), server_default=sa.schema.DefaultClause("0"), nullable=False)) |
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
from flask.ext.restful import marshal_with | |
from flask.ext.jwt import current_user | |
from functools import wraps | |
class marshal_rm_role(object): | |
def __init__(self, fields, role, remove_fields): | |
self.fields = fields | |
self.role = role | |
self.remove_fields = remove_fields | |
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
# Boolean | |
op.add_column('projects', sa.Column('is_closed', sa.Boolean(), server_default=sa.schema.DefaultClause("0"), nullable=False)) | |
# DateTime | |
op.add_column('projects_users', sa.Column('created_at', sa.DateTime(), server_default=sa.func.current_timestamp(), nullable=False)) |
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
import $ from 'jquery'; | |
import React from 'react'; | |
let capitalizeFirstLetter = (string) => { | |
return string.charAt(0).toUpperCase() + string.slice(1); | |
}; | |
let validateHelper = { | |
required(value, name) { | |
if (value) { |
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
{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true, | |
"node": true | |
}, | |
"settings": { | |
"ecmascript": 6, | |
"jsx": true | |
}, |
OlderNewer