Skip to content

Instantly share code, notes, and snippets.

View diloabininyeri's full-sized avatar

Dılo abinin yeri diloabininyeri

View GitHub Profile
<?php
namespace App\Providers;
use App\Listeners\AuthLoginListener;
use Illuminate\Auth\Events\Login;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
<?php
/**
*@author dılo sürücü
*
*/
$time=[
'y'=>'sene',
@diloabininyeri
diloabininyeri / php collection class
Last active March 19, 2020 11:22
php collection class with core php it provider you can also be iterated both object and array
<?php
/**
* Class Collection
* @noinspection PhpUnused
*/
class Collection implements ArrayAccess, IteratorAggregate, JsonSerializable, Countable
{
/**
* @var array $collection
@diloabininyeri
diloabininyeri / deneme.conf
Created March 20, 2020 10:17
nginx site conf with php 7.4 fpm
server {
listen 80;
listen [::]:80;
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
<?php
error_reporting(E_STRICT | E_ALL);
ini_set('display_errors', 1);
$file = file_get_contents("deneme.blade.php");
function e($par)
{
<?php /** @noinspection PhpUnhandledExceptionInspection */
/**
* Class Now
* @author dılo sürücü <[email protected]>
*/
class Now
{
/**
if [[ $(getconf LONG_BIT) = "64" ]]
then
echo "64bit Detected" &&
echo "Installing Google Chrome" &&
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb &&
sudo dpkg -i google-chrome-stable_current_amd64.deb &&
rm -f google-chrome-stable_current_amd64.deb
else
echo "32bit Detected" &&
echo "Installing Google Chrome" &&
<?php
/*
* This file is part of the Predis package.
*
* (c) Daniele Alessandri <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
<?php
namespace Elastic;
use stdClass;
/**
* Class BoolQuery.
* @author dılo sürücü <[email protected]>
*/
from pyspark.sql import SparkSession
import numpy as np
spark = SparkSession.builder.getOrCreate()
df = spark.read.format('csv').option('header', 'true').load('/home/zeus/Desktop/deneme/file.csv')
collect = df.groupBy('county').count().orderBy('count').collect()
array = np.array(collect)
print(array)