This file contains hidden or 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
function loadScript () { | |
return $.getScript('https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.js'); | |
} | |
function loadData () { | |
return $.getJSON('https://alfabank.ru/ext-json/0.2/exchange/cash/?offset=0&limit=20').then(function (d) { return d.response.data.usd.filter(function (x) {return x.type==='buy'}); }); | |
} | |
function drawChart () { | |
$.when(loadData(), loadScript()).then(function (currencies) { |
This file contains hidden or 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
orders_list_app.constant('User', { | |
auth : ('False' == 'True') ? true : false, | |
contractor : ('' == 'True') ? true : false, | |
user_id : ('False' == 'True') ? None : false | |
}); |
This file contains hidden or 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
usualIQ = 120 | |
workingHoursPerDay = 6 | |
getWorkingDaysInMonth = (date) -> | |
isWorkingDate = (date) -> | |
day = date.getDay() | |
return day isnt 0 and day isnt 6 | |
daysInMonth = new Date(date) | |
daysInMonth.setMonth(daysInMonth.getMonth() + 1) | |
daysInMonth.setDate(0) |
This file contains hidden or 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 awesomeScripts = [ | |
'https://cdn.rawgit.com/alexey-sh/c4ced1e023e037298f1a/raw/86e493d5607c81bc2bab7c51cbd9ae8bb7f238ef/gistfile1.js', | |
'https://cdn.rawgit.com/alexey-sh/c4ced1e023e037298f1a/raw/3c2af38c2a0acadf94a032c506b7292c390468c7/gistfile1.js' | |
]; | |
awesomeScripts.forEach(function (src) { | |
$('body').append($('<script>').attr('src', src)); | |
}); |
This file contains hidden or 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 ejs = require('gulp-ejs-precompiler'); | |
var concat = require('gulp-concat'); | |
var gulp = require('gulp'); | |
var insert = require('gulp-insert'); | |
gulp.task('default', function() { | |
return gulp.src("./app/templates/*.ejs") | |
.pipe(ejs({ | |
compileDebug: true, |
NewerOlder