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 Activity | |
module FactoryMethods | |
%w[ | |
project_created | |
lab_created | |
person_joined_project | |
person_left_project | |
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 Activity | |
module FactoryMethods | |
%w[ | |
project_created | |
lab_created | |
person_joined_project | |
person_left_project | |
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 PDFViewer = new Class({ | |
Extends: Swiff, | |
options: { | |
path: "/flashes/pdfviewer.swf", | |
/* | |
Events: | |
onLoad: fires on swf load | |
onReady: viewer is ready and loaded first few pages (happens on startup) | |
onRequest: started loading something (e.g. starting a new page) (viewer is busy), |
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
Dependancy manager | |
Должен интеллектуально раздавать недостающие клиенту файлы и наборы файлов. Должен уметь собирать их в один респонс, знать когда их паковать в один, а когда по отдельности. Должен уметь сжимать гзипом с возможностью подключения консольных утилит для сжатия. | |
1) Зависимости регистрируются на сервере в виде хеша. У зависимости должен быть alias и может иметься несколько файлов, которые будучи загруженными в правильном порядке зависимость удовлетворяют. | |
2) Дерево зависимостей должно уметь экспортироваться в JSON, который можно будет отдать клиенту, чтобы он тоже мог запрашивать то что ему нужно. | |
3) Если на файл ссылается только одна зависимость, он конкатенируется и отдается вместе с остальными файлами. Если на файл ссылаются несколько зависимостей, то исходя из желания использовать HTTP-caching, мы должны отдать его отдельно. В экспортированном в JSON дереве зависимости уже должны быть собраны как нужно. Клиент не должен знать, что mootools состоит из 20 файлов. | |
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
Dependancy manager | |
Задача: Отдать как можно больше файлов за один реквест. Шарные файлы отдавать отдельно, чтобы они закешировались через http. | |
Должен интеллектуально раздавать недостающие клиенту файлы и наборы файлов. Должен уметь собирать их в один респонс, знать когда их паковать в один, а когда по отдельности. Должен уметь сжимать гзипом с возможностью подключения консольных утилит для сжатия. | |
1) Зависимости регистрируются на сервере в виде хеша. У зависимости должен быть alias и может иметься несколько файлов, которые будучи загруженными в правильном порядке зависимость удовлетворяют. | |
2) Дерево зависимостей должно уметь экспортироваться в JSON, который можно будет отдать клиенту, чтобы он тоже мог запрашивать то что ему нужно. |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>PDF Annotator</title> | |
<script src="mootools.js"></script> | |
<script src="pdfviewer.js"></script> | |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>PDF Annotator</title> | |
<script src="mootools.js"></script> | |
<script src="pdfviewer.js"></script> | |
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
package com.digitarald.uploader | |
{ | |
import flash.display.Sprite; | |
import flash.display.StageAlign; | |
import flash.display.StageScaleMode; | |
import flash.display.MovieClip; | |
import flash.events.*; | |
import flash.utils.*; | |
import com.adobe.serialization.json.*; | |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>PDF Annotator</title> | |
<script src="mootools.js"></script> | |
<script src="pdfviewer.js"></script> | |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>PDF Annotator</title> | |
<script src="mootools.js"></script> | |
<script src="pdfviewer.js"></script> | |