Skip to content

Instantly share code, notes, and snippets.

View ucin's full-sized avatar

ucin ucin

  • RSYS
  • Earth
View GitHub Profile
@ucin
ucin / nginx.conf
Created May 16, 2022 12:41 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@ucin
ucin / package.json
Last active August 29, 2015 14:15
My build tools
"watch": "nodemon -e js,json,html -w app.js -w package.json -w ../mod-db -w controllers -w views app.js",
"watch-debug": "nodemon -e js,json,html -w app.js -w package.json -w ../mod-db -w controllers -w views --debug app.js",
"prewatch": "npm run clean && npm run dos2unix && npm run lint && npm run eslint && npm run jshint && npm run jscs ",
"prewatch-debug": "npm run clean && npm run dos2unix && npm run lint && npm run eslint && npm run jshint && npm run jscs ",
"clean": "rimraf dist temp coverage *.log npm-debug.log",
"dos2unix": "find ./ -type f \\( -iname \\*.json -o -iname \\*.js \\) -not -path */node_modules/* | xargs ../tools/dos2unix",
"lint": "npm run eslint && npm run jshint && npm run jscs",
"eslint": "eslint --ignore-path .eslintignore --ext .js -f stylish .",
@ucin
ucin / Grunt.js
Last active August 29, 2015 14:04
Grunt.js file for development environment,
'use strict';
module.exports = function (grunt) {
var env = grunt.option('env') || 'dev';
var testFile = grunt.option('file') || 'test/**/*.js';
var banner = '/*\n<%= pkg.name %> <%= pkg.version %>';
banner += '- <%= pkg.description %>\n<%= pkg.repository.url %>\n';
banner += 'Built on <%= grunt.template.today("yyyy-mm-dd") %>\n*/\n';
var globalConfig = {};
[Serializable]
[Alias("Groups")]
public class Group : IDataMap, IHasId<short>, ISerializable {
public Group() {
}
public Group( SerializationInfo info, StreamingContext context ) {
Id = info.GetInt16("Id");
Name = info.GetString("Name");
}