This file contains 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
export interface SerpScrapingResult { | |
query: string; | |
title: string; | |
position: number; | |
url: string; | |
} | |
function createRequestParams(apiKey: string, query: string): RequestInit { | |
return { | |
method: 'POST', |
This file contains 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
<style> | |
.container { | |
display: flex; | |
flex-direction: row-reverse; | |
flex-wrap: nowrap; | |
justify-content: flex-start; | |
align-items: stretch; | |
overflow-x: scroll; | |
This file contains 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 fetchImageText($filePath = null, $apiKey = null) | |
{ | |
if (empty($filePath) || empty($apiKey)) { | |
return; | |
} | |
$json = json_encode(array( | |
"requests" => array( |
This file contains 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 | |
/** | |
* A class which provide public listing proxies rotated when client request. | |
*/ | |
Class ScrapingProxyProvider | |
{ | |
// Proxies available. | |
private $proxyDatas = array(); |
This file contains 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
class TravisCI { | |
/* | |
* check whether test is running on TravisCI or not using TravisCI enviroment variables. | |
* | |
* as for TravisCI enviroment variables availables @see https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables | |
* | |
*/ | |
static var isRunningOnTravisEnviroment: Bool { | |
let isTravisEnviromentVariableName = "CI" |
This file contains 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
post_install do |installer| | |
pods_project = installer.pods_project | |
pods_project.build_configurations.each do |configuration| | |
pods_project.build_settings(configuration.name)['ONLY_ACTIVE_ARCH'] = 'NO' | |
end | |
puts "Forcedly set CocoaPods project `Pods`’s `Build Only Architecture` to `NO`” | |
end |
This file contains 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 namespace App\Services; | |
use GuzzleHttp\Client; | |
class OneSignal { | |
const API_URL_ADD_PLAYER = 'https://onesignal.com/api/v1/players'; | |
const API_URL_CREATE_PUSH = 'https://onesignal.com/api/v1/notifications'; | |
const DEVICE_TYPE_IOS = 0; | |
const DEVICE_TYPE_ANDROID = 1; |
This file contains 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
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L] |
This file contains 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
################################################################################ | |
# | |
# Apple Push Notification Certificate Creator v 0.1 | |
# | |
################################################################################ | |
#After exporting APNs certificates for development as "apns_dev.p12" and the one for production as "apns_pro.p12" | |
# Development | |
openssl pkcs12 -clcerts -nokeys -out apns_dev_cert.pem -in apns_dev.p12 |
This file contains 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
rm -rf `find ./ -type d -name .git ! -regex \.git/. -print` | |
#Remove '.gitignore' also. | |
rm -rf `find ./ -type d -name .gitignore ! -regex \.gitignore/. -print` |
NewerOlder