Skip to content

Instantly share code, notes, and snippets.

View fedor's full-sized avatar

Fedor Korshunov fedor

View GitHub Profile
@fedor
fedor / 0_reuse_code.js
Created October 26, 2016 04:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
// config.js
module.exports = {
mongo: {
init: require('./init_mongo'),
// ...
}
}
// config.js
module.exports = {
mongo: {
init: function (params) {
return require('mongodb').MongoClient.connect(
'mongodb://'+params.host+':'+params.port+'/'+params.db
)
},
default: {
db: 'test',
{
"mongo": {
"default": {
"db": "test",
"port": 27017
},
"development": {
"host": "127.0.0.1"
},
"production": {
@fedor
fedor / push-tutorial.md
Last active February 19, 2020 14:04
Phonegap Plugin Push Tutorial
@fedor
fedor / dabblet.css
Created May 15, 2013 23:33
Pesonal page layout
/**
* Pesonal page layout
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;