-
install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.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
| <?php | |
| $job_type = "QUERY"; | |
| $save_folder_path = './feebee_bigquery_log'; | |
| $start_timestamp = '1583370000000'; | |
| $end_timestamp = '1583391600000'; | |
| $size = 1000; | |
| $bg_ls_command = sprintf( | |
| '/usr/local/bin/bq ls -j -a --format=json --min_creation_time=%s --max_creation_time=%s --message_type=INFO -n %s', |
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
| <resources> | |
| <style name="Base.V0.AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar"> | |
| <item name="colorPrimary">@color/yellow</item> | |
| <item name="colorPrimaryDark">@color/yellow_dark</item> | |
| <item name="colorAccent">@color/blue_1</item> | |
| </style> | |
| <style name="AppTheme" parent="Base.V0.AppTheme"> | |
| <!-- do somthing--> |
Download as a gradle dependency in your project. To use it you will have to edit your gradle files in two places. First you need to add new maven repository to your top level gradle file. The repository is a link to your GitHub repository created in step one. Here's what you need to add to use SitemajiSDK library:
...
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
| <?php | |
| function init_suggest() { | |
| $redis = new Redis(); | |
| $redis->pconnect('127.0.0.1', 6379); | |
| $redis->delete('autocomplete'); | |
| $keyword = array( | |
| '全境封鎖', | |
| '火線獵殺', |
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
| <?php | |
| function curl_get($url) { | |
| $header_array = array( | |
| 'Content-Type: application/json', | |
| 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36' | |
| ); | |
| $options = array( | |
| CURLOPT_URL => $url, | |
| CURLOPT_RETURNTRANSFER => TRUE, |
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
| <?php | |
| function curl_get($url, $cookie = NULL) { | |
| $header_array = array( | |
| 'Referer: https://hrm.mayohr.com/ta/supervisor/shiftscheduleapprovelist', | |
| 'Content-Type: application/json', | |
| 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36' | |
| ); | |
| if (isset($cookie)) { | |
| $header_array[] = 'Cookie: ' . $cookie; |
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
| <?php | |
| class LCS { | |
| private $str1; | |
| private $str2; | |
| private $c = array(); | |
| /*返回串一和串二的最长公共子序列*/ | |
| function getLCS($str1, $str2, $len1 = 0, $len2 = 0) { | |
| $this->str1 = $str1; |
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 android.content.Context; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import android.support.v4.widget.SwipeRefreshLayout; | |
| import android.util.AttributeSet; | |
| import android.view.MotionEvent; | |
| import android.view.ViewConfiguration; | |
| /** | |
| * Created by showsky on 2018/4/18. |