Tiny Cross-browser DOM ready function in 111 bytes of JavaScript.
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
| #!/usr/bin/php | |
| <?php | |
| /* | |
| treendent.php (tree indent) | |
| @author: Manel R. Doménech (@manelio) | |
| it's annoying for me to create files and directories in most of the editor I | |
| use, like Sublime Text and Vim. Also in the shell. | |
| Because that, I wrote a minimal parser called treendent for intend-based files |
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
| #!/usr/bin/ruby -i | |
| =begin | |
| * treendent.rb | |
| * Manel R. Doménech (@manelio) | |
| it's annoying for me to create files and directories in most of the editor I | |
| use, like Sublime Text and Vim. Also in the shell. | |
| Because that, I wrote a minimal parser called treendent for intend-based files | |
| to design a filesystem tree. There are versions of the parser in php (treendent.php) |
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
| Core optimization I: | |
| Test: | |
| url: http://myproject.com.local/ (a catalog page that loads 111 products) | |
| Before: | |
| Total Incl. Wall Time (microsec): 34,340,233 microsecs | |
| Number of Function Calls: 10,098,542 |
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
| #!/bin/sh | |
| # | |
| # YOU CAN USE THIS SCRIPT AS A COMMAND OR JUST COPY AND PASTE THE WHOLE SCRIPT IN TERMINAL | |
| # | |
| <<'COMMENT' | |
| Requirements: | |
| A directory with at least 2 files: .env and setuprc |
This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.
It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.
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
| #!/bin/bash | |
| # sudo apt-get remove -y docker docker-engine docker.io | |
| sudo apt-get update | |
| sudo apt-get install -y apt-transport-https ca-certificates curl rsync gnupg2 software-properties-common jq | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo apt-key fingerprint 0EBFCD88 | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
| sudo apt-get update |
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
| // CommonJS CLI version | |
| const { bech32 } = require('bech32'); | |
| const { toChecksumAddress } = require('web3-utils'); | |
| const { | |
| decode: bech32Decode, | |
| encode: bech32Encode, | |
| fromWords: bech32FromWords, | |
| toWords: bech32ToWords |
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
| L510BF1E33 |
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
| # -*- coding: utf-8 -*- | |
| import pyodbc | |
| import requests | |
| import logging | |
| import time, datetime, re | |
| import csv | |
| # Backoff time sets how many minutes to wait between google pings when your API limit is hit | |
| BACKOFF_TIME = 10 | |
| # Return Full Google Results? If True, full JSON results from Gooñgle are included in output |
OlderNewer