Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| import networkx as nx | |
| # SAMPLE DATA FORMAT | |
| #nodes = [('tensorflow', {'count': 13}), | |
| # ('pytorch', {'count': 6}), | |
| # ('keras', {'count': 6}), | |
| # ('scikit', {'count': 2}), | |
| # ('opencv', {'count': 5}), | |
| # ('spark', {'count': 13}), ...] |
| # This is an annotated subset of the Nginx configuration from our Magento production platform @ www.hypernode.com | |
| # See https://www.byte.nl/blog/magento-cacheleak-issue | |
| # !!!! If you are a Hypernode customer, do not use this config as it will result in duplicate statements. !!!!! | |
| user app; | |
| worker_processes 4; | |
| pid /var/run/nginx.pid; | |
| events { |
| {"lastUpload":"2019-10-06T18:32:39.184Z","extensionVersion":"v3.4.3"} |
| /** | |
| * Retrieves all the rows in the active spreadsheet that contain data and logs the | |
| * values for each row. | |
| * For more information on using the Spreadsheet API, see | |
| * https://developers.google.com/apps-script/service_spreadsheet | |
| */ | |
| function readRows() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var rows = sheet.getDataRange(); | |
| var numRows = rows.getNumRows(); |
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
| delimiter ;; | |
| drop procedure if exists build_catalog;; | |
| create procedure build_catalog(IN categories INT, IN products INT) | |
| begin | |
| SET @category_count = 1; | |
| SET @CATNAMEPREFIX = "Category "; | |
| SET @CATURLKEYPREFIX = "cat-"; | |
| SET @CATURLPATHPREFIX = "catpath-"; | |
| SET @ROOTCATEGORY = 2; | |
| SET @INCLUDEINMENU = 1; |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| <?php | |
| // Snippet for Symfony 2 application that uses Doctrine 2 to handle transactions | |
| // It uses the names of the objects/doctrine repositories from the Beta 4 Manual of Symfony 2. | |
| // Get the entity manager | |
| $em = $this->getDoctrine()->getEntityManager(); | |
| // suspend auto-commit | |
| $em->getConnection()->beginTransaction(); |