This file contains hidden or 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
| span.error { | |
| color: red; | |
| display: block; | |
| } |
This file contains hidden or 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 | |
| $service_port = getservbyname('http', 'tcp'); | |
| $address = gethostbyname('chat.dev.com'); | |
| $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); | |
| $result = socket_connect($socket, $address, $service_port); | |
| // ... |
This file contains hidden or 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
| /** | |
| * @module: string-inject | |
| * @version: 1.0.0 | |
| * @author: Lcf.vs | |
| * @copyright: © 2015 | |
| * @license: MIT | |
| * @exports: {function} inject(name, str, data) | |
| * @description: Injects some map-based data into a string | |
| * @param: {string} name | |
| * @description: The map name |
This file contains hidden or 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 * as mongoose from 'mongoose'; | |
| console.log(mongoose.connect); // undefined | |
| // but | |
| console.log(mongoose); | |
| /* | |
| { connections: | |
| [ NativeConnection { | |
| base: [Object], |
This file contains hidden or 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
| /* | |
| matches a string which contains : | |
| - min 8 chars | |
| - a lowercase letter | |
| - a capital letter | |
| - a number | |
| - a special char | |
| - no chars repeated more than twice | |
| */ |
NewerOlder