Skip to content

Instantly share code, notes, and snippets.

@BryceHappy
BryceHappy / google-tips
Created July 20, 2022 11:26 — forked from qwo/google-tips
Google Recruiter Candidate Tips ..
xxx,
Thanks again for taking the time to speak with me and for sending me your information. I'm excited to tell you that we would like to move forward in the process!
One of our coordinators will be emailing you within the next week from an @google.com domain with the date and time of your phone interview. In the meantime, I've included some preparation materials (below.)
Please note this will be a technical interview that will last for approximately 45 minutes. Google takes an academic approach to the interviewing process. This means that we are interested in your thought process, your approach to problem solving as well as your coding abilities. You may be asked questions that relate to technical knowledge, algorithms, coding, performance, how to test solutions, and perhaps your interest in Google products. The best advice that I can give you is to treat the interview like a conversation, talk through the problems, and please feel free to ask the interviewer if you are not clear with any of the questio
@BryceHappy
BryceHappy / Query
Created August 17, 2021 10:13
Google BigQuery Client
<?php
require 'vendor/autoload.php';
use Google\Cloud\BigQuery\BigQueryClient;
$bigQuery = new BigQueryClient(['keyFilePath' => './keybig.json']);
$maxResults = 1000;
$startIndex = 0;
@BryceHappy
BryceHappy / tableQuery
Created August 17, 2021 10:11
Google BigQuery Client
<?php
require 'vendor/autoload.php';
use Google\Cloud\BigQuery\BigQueryClient;
$bigQuery = new BigQueryClient(['keyFilePath' => './keybig.json']);
$maxResults = 1000;
$startIndex = 0;
@BryceHappy
BryceHappy / class-wp-posts-list-table
Created June 15, 2020 03:38
Wordpress 修正格表文章欄位
Path:wp-admin/includes/class-wp-posts-list-table.php
Function:get_columnso
Do:
unset($posts_columns['seotitle']);
unset($posts_columns['seodesc']);
unset($posts_columns['seokeywords']);
unset($posts_columns['stats']);
@BryceHappy
BryceHappy / Using PHP Combine Multiple CSV Files into One CSV File
Created November 12, 2019 09:47
Using PHP Combine Multiple CSV Files into One CSV File
<?php
/**
* 7design.studio
* Merge multiple CSV files into one master CSV file
* Remove header line from individual file
*/
$directory = "FOLDERDIRECTORY/*"; // CSV Files Directory Path
@BryceHappy
BryceHappy / Laravel-Scheduler-Windows.md
Created October 18, 2019 07:20 — forked from Splode/Laravel-Scheduler-Windows.md
Laravel Scheduler on Windows

Run Laravel Scheduled Tasks on Windows

The following are instructions for running scheduled tasks defined in a Laravel project on Windows. The Laravel documentation provides instructions for running scheduled tasks using cron jobs on Linux systems. However, cron jobs are not available on Windows. The built-in Windows Task Scheduler can be used to run scheduled tasks instead.

Create a Scheduled Task

  1. Open Task Scheduler
  2. Select Create Task...
  3. Give the task a name and description
  4. To run the task in the background, select Run whether the user is logged on or not and check the Hidden checkbox.
composer create-project --prefer-dist laravel/laravel projectNmae "5.5.*"
@BryceHappy
BryceHappy / PHP API sample with cURL
Created May 10, 2019 08:51
PHP API sample with cURL
#!/usr/bin/php
<?php
$serverURL = "https://api.autorouter.aero/v1.0";
$token = auth();
if ($token === null)
exit;
$cl = curl_init();
curl_setopt($cl, CURLOPT_RETURNTRANSFER, true);
@BryceHappy
BryceHappy / Ubuntu 16.04 - PHP 7.1.11 to 7.1.3
Created December 5, 2018 10:12
Ubuntu 16.04 - PHP 7.1.11 to 7.1.3
https://askubuntu.com/questions/1025855/ubuntu-16-04-php-7-1-11-to-7-1-3
Since official repo comes with 7.0 version, repo from ondrej/php has 7.1
Add the repository :
sudo add-apt-repository ppa:ondrej/php
Update :
sudo apt-get update
https://smalljacky.com/javascript/google-recaptcha-ajax-for-php/