Skip to content

Instantly share code, notes, and snippets.

View saber13812002's full-sized avatar
💭
stackoverflow+codegrepper.com

Saber tabatabaee yazdi saber13812002

💭
stackoverflow+codegrepper.com
View GitHub Profile
@saber13812002
saber13812002 / grasshopper csharp only
Created August 17, 2020 06:30 — forked from texone/grasshopper csharp only
mesh based reaction diffusion
using System;
using System.Collections;
using System.Collections.Generic;
using Rhino;
using Rhino.Geometry;
using Grasshopper;
using Grasshopper.Kernel;
using Grasshopper.Kernel.Data;
@saber13812002
saber13812002 / xampp_php7_xdebug.md
Created February 16, 2020 17:42 — forked from odan/xampp_php7_xdebug.md
Installing Xdebug for XAMPP
@saber13812002
saber13812002 / README.md
Created February 8, 2020 15:18 — forked from manzoorwanijk/README.md
Google Script to bypass the blockage of Telegram Bot API from by webhost

WPTelegram Google Script

You can use this script to bypass the bans on Telegram API by different hosts. Simply send the request to this script instead of the Telegram Bot API after deploying it as a web app and allowing anonymous access.

Params

It accepts bot GET and POST requests with the following params

name type Description
<?php
//set up pods::find parameters to limit to 5 items
$param = array(
'limit' => 5,
);
//create pods object
$pods = pods('pod_name', $params );
//check that total values (given limit) returned is greater than zero
if ( $pods->total() > 0 ) {
@saber13812002
saber13812002 / example.php
Created November 24, 2019 09:28 — forked from mhemrg/example.php
Liara
if( ! app()->runningInConsole()) {
// Your code...
}
FROM liararepo/laravel-platform:frontend
FROM liararepo/laravel-platform:backend
RUN chgrp -R www-data /var/www/html/lib/vendor
RUN chmod -R ug+rwx /var/www/html/lib/vendor
@saber13812002
saber13812002 / Dockerfile
Created July 11, 2019 16:36 — forked from mhemrg/Dockerfile
Nodejs + puppeteer + docker
FROM liararepo/node-platform
RUN apt-get update \
# See https://crbug.com/795759
&& apt-get install -yq libgconf-2-4 \
# Install latest chrome dev package, which installs the necessary libs to
# make the bundled version of Chromium that Puppeteer installs work.
&& apt-get install -y wget --no-install-recommends \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
@saber13812002
saber13812002 / 1. autoplay-video.directive.ts
Created July 9, 2019 23:18 — forked from Bengejd/1. autoplay-video.directive.ts
Ionic - Auto play/pause videos on scroll.
import { Directive } from '@angular/core';
@Directive({
selector: 'video'
})
export class AutoplayVideoDirective { }
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use File;
class MakeViewCommand extends Command
{
/**
@saber13812002
saber13812002 / parse-url.php
Created June 14, 2018 09:25 — forked from bryanwillis/parse-url.php
Parse url. Break down a url to get the parameters / arguments. Very helpful....
<?php
$url = 'http://usr:pss@example.com:81/mypath/myfile.html?a=b&b[]=2&b[]=3#myfragment';
if ($url === unparse_url(parse_url($url))) {
print "YES, they match!\n";
}
function unparse_url($parsed_url) {
$scheme = isset($parsed_url['scheme']) ? $parsed_url['scheme'] . '://' : '';
$host = isset($parsed_url['host']) ? $parsed_url['host'] : '';