# Install python 3.x
brew ugrade python
# Install TF - see https://github.com/tensorflow/tensorflow/issues/17369
pip3 install grpcio==1.9.1 tensorflow
Note
to active Office without crack, just follow https://github.com/WindowsAddict/IDM-Activation-Script,
you wiil only need to run
irm https://massgrave.dev/ias | iex
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 | |
namespace App\Providers; | |
use Illuminate\Http\Request; | |
use Illuminate\Routing\Route; | |
use Illuminate\Support\ServiceProvider; | |
use App\Http\Middleware\CaptureRequestExtension; | |
class AppServiceProvider extends ServiceProvider |
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 requests | |
import os | |
# change this url to the post's url | |
post_url = "https://www.reddit.com/r/holdmycatnip/comments/7vyada/hmc_so_i_can_drink_this_air_real_quick/" | |
# use UA headers to prevent 429 error | |
headers = { | |
'User-Agent': 'My User Agent 1.0', | |
'From': '[email protected]' |
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 | |
use ZipStream\ZipStream; | |
Route::get('/test', function () { | |
$tempStream = fopen('php://temp', 'w+'); | |
$zipStream = new ZipStream(null, [ZipStream::OPTION_OUTPUT_STREAM => $tempStream]); | |
$zipStream->addFile('MyTextFile.txt', 'This is the contents.'); | |
$zipStream->finish(); | |
rewind($tempStream); |
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 | |
// Put me into tests/autoload.php | |
require_once __DIR__.'/../vendor/autoload.php'; | |
try { | |
$env = env('APP_ENV'); | |
$filename = sprintf(".env.%s", $env); | |
(new Dotenv\Dotenv(dirname(__DIR__), $filename))->load(); | |
} catch (Dotenv\Exception\InvalidPathException $e) { | |
echo ".env for test is missing."; |
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 | |
use Illuminate\Contracts\Validation\Rule; | |
class ValidPaymentToken implements Rule; | |
{ | |
private $gateway; | |
private $param1; | |
private $param2; |
A simple App using Vue.js & Firebase with Auth.
See the DEMO.
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
public extension MKMultiPoint { | |
var coordinates: [CLLocationCoordinate2D] { | |
var coords = [CLLocationCoordinate2D](repeating: kCLLocationCoordinate2DInvalid, | |
count: pointCount) | |
getCoordinates(&coords, range: NSRange(location: 0, length: pointCount)) | |
return coords | |
} | |
} |
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
Vue.component('coupon', { | |
props: ['code'], | |
template: ` | |
<input type="text" | |
:value="code" | |
@input="updateCode($event.target.value)" | |
ref="input"> | |
`, |