Custom recipe to get OS X 10.11 El Capitan running from scratch with useful applications and Node.js Developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after fresh install.
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/python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Copyright 2012 Google Inc. All Rights Reserved. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 |
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
| /** | |
| * | |
| * AdWords Script for checking the contents of landing pages. | |
| * Goes to the final URL of keywords or ads, then searches the source code for | |
| * user defined strings. | |
| * | |
| * Version: 1.0 | |
| * Google AdWords Script maintained by brainlabsdigital.com | |
| * | |
| **/ |
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 num_subjects(alpha, power_level, p, delta) { | |
| var t_alpha2 = ppnd(1.0-alpha/2); | |
| var t_beta = ppnd(power_level); | |
| var sd1 = Math.sqrt(2 * p * (1.0 - p)); | |
| var sd2 = Math.sqrt(p * (1.0 - p) + (p + delta) * (1.0 - p - delta)); | |
| return (t_alpha2 * sd1 + t_beta * sd2) * (t_alpha2 * sd1 + t_beta * sd2) / (delta * delta); | |
| } |
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
| /*********** | |
| * Collects the reporting results from all accounts | |
| * and generates a nicely formatted email. If there | |
| * are errors for an account, it includes those | |
| * in the email as well since an error in one account | |
| * won't stop the entire script. | |
| ***********/ | |
| function generateReport(results) { | |
| var NOTIFY = ['[email protected]']; | |
| var total_deleted = 0; |
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
| /** | |
| * | |
| * Heat Map Creation Tool | |
| * | |
| * This script calculates the smoothed average performance of each hour of each day | |
| * of the week, and outputs this into a heat map and graph in a Google sheet. It | |
| * also makes suggested bid adjustments based on the conversion rate. | |
| * | |
| * Version: 1.1 | |
| * Updated 2016-10-11: removed 'ConvertedClicks'. |
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
| package com.mallo64.dataflow | |
| import com.google.api.client.json.GenericJson; | |
| import com.google.api.services.bigquery.model.TableCell; | |
| import com.google.api.services.bigquery.model.TableFieldSchema; | |
| import com.google.api.services.bigquery.model.TableRow; | |
| import com.google.api.services.bigquery.model.TableSchema; | |
| import com.google.cloud.dataflow.sdk.transforms.DoFn; | |
| import org.apache.avro.Schema; | |
| import org.apache.avro.specific.SpecificRecord; |
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
| /** | |
| * | |
| * Broad-match keyword aggregator script | |
| * This script will group equivalent broad match keywords and label based on performence | |
| * | |
| * Version: 1.1 | |
| * Updated 2016-10-11: replaced 'ConvertedClicks' with 'Conversions' | |
| * Google AdWords Script maintained by brainlabsdigital.com | |
| * | |
| **/ |
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
| /* | |
| A script to generate a Google BigQuery-complient JSON-schema from a JSON object. | |
| Make sure the JSON object is complete before generating, null values will be skipped. | |
| References: | |
| https://cloud.google.com/bigquery/docs/data | |
| https://cloud.google.com/bigquery/docs/personsDataSchema.json | |
| https://gist.github.com/igrigorik/83334277835625916cd6 | |
| ... and a couple of visits to StackOverflow |
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
| /** | |
| * | |
| * Search Query Mining Tool | |
| * | |
| * This script calculates the contribution of each word or phrase found in the | |
| * search query report and outputs a report into a Google Doc spreadsheet. | |
| * | |
| * Version: 2.2 | |
| * Updated 2015-09-17: replacing 'KeywordText' with 'Criteria' | |
| * Updated 2016-10-11: replacing 'ConvertedClicks' with 'Conversions' |