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
Verifying my Blockstack ID is secured with the address 1BStSSHb6QbagrSqSuWrX64yibNNdM8hd4 https://explorer.blockstack.org/address/1BStSSHb6QbagrSqSuWrX64yibNNdM8hd4 |
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
const express = require('express') | |
const bodyParser = require('body-parser') | |
const expressValidator = require('express-validator') | |
const routes = require('./routes') | |
const middlewares = require('./middlewares') | |
const errorHandlers = require('./middlewares/errorHandlers') | |
const isProduction = process.env.NODE_ENV === 'production' | |
const passport = require('passport') | |
const mongoose = require('mongoose') |
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
export default class App { | |
constructor(userHandler){ | |
this.userHandler = userHandler; | |
} | |
async testing(req, res) => { | |
const { email } = req.body | |
const r = await this.userHandler.findOne({email}) | |
res.json(r) | |
} |
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 main | |
import ( | |
"fmt" | |
"net/http" | |
"time" | |
) | |
/* | |
* Converts a function that return a channel |
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 generate_tag_helpers_with_basepath = function(basePath) { | |
return { | |
relative_path: function() { | |
var pathDepth = basePath.split('/').length -2; | |
var path = new Array(pathDepth + 1).join('../'); | |
return path; | |
} | |
} | |
}; |
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
// If you need to unmask the Wikipedia's SOPA protest blackout, | |
// paste this in your browser's address bar. | |
javascript:(function(d){d.getElementById('mw-sopaOverlay').style.display='none'; d.getElementById('content').style.display='block';})(document); |
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 my_function_expression = function(){}; | |
var mocked = nodemock.mock("foo").takes(20, my_function_expression).calls(my_function_expression, 30, [10, 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
(function($){ | |
$.isBlank = function(string){ | |
return(!string || $.trim(string) === ""); | |
}; | |
})(jQuery); | |
$.isBlank(" ") //true | |
$.isBlank("") //true | |
$.isBlank("\n") //true | |
$.isBlank("a") //false |
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
/** | |
* jQuery plugin to detect clicks outside an element | |
* | |
* Copyright (c) 2010 Vesess Inc. (vesess.com) | |
* Licensed under the MIT (MIT-LICENSE.txt) licenses. | |
* | |
*/ | |
(function($){ | |
$.fn.outsideClick = function(optional_params){ |
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
/** | |
* jQuery plugin to detect clicks outside an element | |
* | |
* Copyright (c) 2010 Vesess Inc. (vesess.com) | |
* Licensed under the MIT (MIT-LICENSE.txt) licenses. | |
* | |
*/ | |
(function($){ | |
$.fn.outsideClick = function(optional_params){ |
NewerOlder