Skip to content

Instantly share code, notes, and snippets.

@kscc25
kscc25 / OpenPaasInstruction.md
Last active July 7, 2016 08:40 — forked from tuanlc/OpenPaaSInstruction.md
Install OpenPaas instruction

I. Prepare.

Install docker

Follow documentation here.

Make sure you can run docker by running:

docker run hello-world

{
infoContactCreatedBy: 'Tạo bởi {{name}}',
infoContactUrl: 'Xem thêm tại',
infoContactEmail: 'Liên hệ nhà phát triển',
infoLicense: 'Giấy phép: ',
infoBaseUrl: 'BASE URL',
infoApiVersion: 'API VERSION',
infoHost: 'HOST',
endPointToggleOperations: 'Ẩn/Hiện',
endPointListOperations: 'Danh sách các thao tác',
// Bad
.factory('sendEmail', function() {
return function () {....};
})
// mock ???
// Good
.factory('emailService', function() {

Contribution to Hubl.in

Content of this document

  • User stories
  • Tasks. They are also reported to a Trello board. Tags include : feature set. Order reflects dependencies.
  • Moscow. Also reported on the Trello board.
  • Dependency graph.

User stories (from Michael Bailly)

// wrapper for our game "classes", "methods" and "objects"
window.Game = {};
// wrapper for "class" Rectangle
(function(){
function Rectangle(left, top, width, height){
this.left = left || 0;
this.top = top || 0;
this.width = width || 0;
this.height = height || 0;
@kscc25
kscc25 / jspm.travis.setup.md
Created February 12, 2016 13:35 — forked from topheman/jspm.travis.setup.md
Travis setup of Github token for jspm
@kscc25
kscc25 / main.diff
Created February 12, 2016 08:25
main.js patch
--- <unnamed>
+++ <unnamed>
@@ -8,8 +8,9 @@
var Client = require('heroandtn3/agario-client');
var EventEmitter = require('events').EventEmitter;
var Misc = require('./misc');
-var Connector = require('./connector');
var constants = require('./constants');
+var servers = require('./servers.js');
+var Buffer = require('buffer/').Buffer;
#!/usr/bin/env python
import re
import sys
patterns = {
'[àáảãạăắằẵặẳâầấậẫẩ]': 'a',
'[đ]': 'd',
'[èéẻẽẹêềếểễệ]': 'e',
'[ìíỉĩị]': 'i',
'[òóỏõọôồốổỗộơờớởỡợ]': 'o',
@kscc25
kscc25 / snow use on BKF
Last active January 1, 2016 07:39
snow.js
<!-- Snow effect -->
<script type="text/javascript">
// Set the number of snowflakes (more than 30 - 40 not recommended)
var snowmax=15;
// Set the colors for the snow. Add as many colors as you like
var snowcolor=new Array("#aaaacc","#ddddff","#ccccdd","#f3f3f3","#f0ffff");
// Set the fonts, that create the snowflakes. Add as many fonts as you like
var snowtype=new Array("Times","Arial","Times","Verdana");
/*
* Copyright 2013 heroandtn3 (heroandtn3 [at] gmail.com)
*
* This file is part of quizgame.
* quizgame is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* quizgame is distributed in the hope that it will be useful,