// jQuery
$(document).ready(function() {
// code
})
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
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
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
| function map (arr, func) { | |
| return Promise.resolve().then(function () { | |
| return arr.map(function (el) { return func(el) }) | |
| }).all() | |
| } | |
| function mapSeries (arr, func) { | |
| let currentPromise = Promise.resolve() | |
| let promises = arr.map(function (el) { | |
| return currentPromise = currentPromise.then(function () { |
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 { createCipheriv, createDecipheriv, randomBytes } from "crypto"; | |
| const ENCRYPTION_KEY: string = process.env.ENCRYPTION_KEY || ""; // Must be 256 bits (32 characters) | |
| const IV_LENGTH: number = 16; // For AES, this is always 16 | |
| /** | |
| * Will generate valid encryption keys for use | |
| * Not used in the code below, but generate one and store it in ENV for your own purposes | |
| */ | |
| export function keyGen() { |
You're most likely using some kind of 3D or Native Maps in your App then, no?
Awaiting XCode 9.1 (which contains a fix) here's a workaround which replaces the bundled OpenGLES.framework with the version from XCode 9.0 beta 3.
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 Head from 'next/head' | |
| import SEO from '../constants/seo' | |
| export default ({ | |
| title = SEO.title, | |
| description = SEO.description, | |
| pageUrl = SEO.siteUrl, | |
| mainImage = SEO.mainImage, | |
| iosApplink = SEO.quizBuzzHomeUrl, | |
| androidAppLink = SEO.quizBuzzHomeUrl, |
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
| // 🤫The following code is experimental and might break in the future! | |
| // Don't use it if you are using some kind of side-effect patterns like: Helmet, GraphQL or react-side-effect. | |
| import { useRouter } from 'next/router' | |
| function Home() { | |
| const { | |
| // `String` of the actual path (including the query) shows in the browser | |
| asPath, | |
| // `String` Current route |
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
| -- This function is based on this description: | |
| -- https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html | |
| CREATE OR REPLACE FUNCTION | |
| sign_s3_url( | |
| m_host text, | |
| m_verb text, | |
| m_resource text, | |
| m_region text, | |
| m_key text, |
OlderNewer