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
Wiseperson Generator: https://jsbin.com/niwufic/edit?js,console,output | |
Shouter : https://jsbin.com/tuwexoc/edit?js,console,output | |
Text normalizer: https://jsbin.com/likavis/edit?js,console,output |
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
Area of a Rectangle: https://jsbin.com/edit?js,console | |
Temperature Conversion: http://jsbin.com/xuvaqor/edit?js,console | |
Is devisible: http://jsbin.com/baniyi/edit?js,console |
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
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Http\Request; | |
class JsonMiddleware | |
{ | |
public function handle(Request $request, Closure $next) |
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
https://github.com/buunguyen/mongoose-migrate | |
https://github.com/balmasi/migrate-mongoose | |
https://github.com/gonza-lito/migrate-mongoose | |
https://github.com/megahertz/mongoomig | |
https://github.com/acarl005/mongoose-cli (with timestamp) | |
https://github.com/SamVerschueren/mongoose-seeder/ [seeder] | |
https://github.com/seanemmer/mongoose-seed |
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
https://stackoverflow.com/questions/19961387/trying-to-get-a-list-of-collections-from-mongoose [list all collections] | |
https://stackoverflow.com/questions/17035297/getting-schema-attributes-from-mongoose-model [schema paths] |
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
'use strict'; | |
const fs = require('fs'); | |
const path = require('path'); | |
const Mongoose = require('mongoose'); | |
const basename = path.basename(__filename); | |
const env = process.env.NODE_ENV || 'development'; | |
const config = require(__dirname + '/../config/config.json')[env]; | |
if (config.database.url) { |
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
'use strict'; | |
const fs = require('fs'); | |
const path = require('path'); | |
const Mongoose = require('mongoose'); | |
const basename = path.basename(__filename); | |
const env = process.env.NODE_ENV || 'development'; | |
const config = require(__dirname + '/../config/config.json')[env]; | |
if (config.database.url) { |
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> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
<title>Mini App</title> | |
<style> | |
body { | |
margin: 0; |
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
... | |
import org.jsoup.Jsoup | |
.... | |
class HeavenManga : ParsedHttpSource() { | |
... | |
override val baseUrl = "http://heavenmanga.com" |
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 { DateTime } = require("luxon") | |
var ms = require("ms") | |
/** | |
* this takes a relative time `xxx xxx ago` and returns `xxx xxx` | |
**/ | |
function stripAgo(date) { | |
const trime = date.split(" "); | |
// console.log("trime ==> ", trime); | |
return trime[2] === "ago" ? `${trime[0]} ${trime[1]}` : date; |
OlderNewer