Ndex | Pokemon | Gender | Gen |
---|---|---|---|
003 | Venusaur | ♂ | 4 |
003 | Venusaur | ♀ | 4 |
012 | Butterfree | ♂ | 4 |
012 | Butterfree | ♀ | 4 |
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
#!/bin/bash | |
set -e | |
# Load .env file | |
if [ -f .env ]; then | |
export $(cat .env | sed 's/#.*//g' | xargs) | |
else | |
echo "No .env file found" | |
exit 1 |
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 | |
declare(strict_types=1); | |
namespace App\Support; | |
class JsonEncoder | |
{ | |
private const JSON_PRETTY_PRINT_INDENT = 4; |
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
// helps us in parsing the frontmatter from text content | |
const matter = require('gray-matter') | |
// helps us safely stringigy the frontmatter as a json object | |
const stringifyObject = require('stringify-object') | |
// helps us in getting the reading time for a given text | |
const readingTime = require('reading-time') | |
// please make sure you have installed these dependencies | |
// before proceeding further, or remove the require statements | |
// that you don't use |
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 Document from 'next/document' | |
import { ServerStyleSheet } from 'styled-components' | |
export default class MyDocument extends Document { | |
static async getInitialProps (ctx) { | |
const sheet = new ServerStyleSheet() | |
const originalRenderPage = ctx.renderPage | |
try { | |
ctx.renderPage = () => |
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 Foo; | |
use BadMethodCallException; | |
use Closure; | |
use DomainException; | |
/* | |
* This example encapsulates before/after method call callbacks inside a the service itself, using a proxy, |
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 ( | |
"database/sql" | |
"fmt" | |
"net" | |
"os" | |
"github.com/go-sql-driver/mysql" | |
"golang.org/x/crypto/ssh" |
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
/*! | |
* ES6 ScriptLoader snippet | |
* (c) Javier Aguilar mjolnic.com | |
* License: MIT (http://www.opensource.org/licenses/mit-license.php) | |
* Source: https://gist.github.com/mjolnic/93cc837dd2213ec0636a | |
*/ | |
window.ScriptLoader = function () { | |
/** | |
* | |
* @param {string} url |
NewerOlder