Skip to content

Instantly share code, notes, and snippets.

View meysam-mahmoodi's full-sized avatar

Meysam Mahmoudi meysam-mahmoodi

  • Istanbul
View GitHub Profile
import 'package:flutter/material.dart';
import '../../components/my_flat_button.dart';
import 'question2.dart';
class Question1 extends StatefulWidget {
@override
Question1State createState() {
return Question1State();
}
@meysam-mahmoodi
meysam-mahmoodi / creating-npm.md
Last active December 19, 2018 07:03
How to craete a npm module and publish it

How to create a npm module and publish it

Requirements

  • Having an account in npmjs.com
  • Having an account github.com

Make a NPM module

make a directory for your module: mkdir my-module` navigate it:

@meysam-mahmoodi
meysam-mahmoodi / kubernetes-uninstall.md
Last active April 12, 2024 18:50
Kubernetes completely uninstall

Kubernetes completely uninstall

This a gist for quick uninstall kubernetes

If the cluster is node, First delete it from master

kubectl drain <node name> — delete-local-data — force — ignore-daemonsets
kubectl delete node <node name>
@meysam-mahmoodi
meysam-mahmoodi / func.php
Created July 7, 2018 11:45
Create a sample php function in fn
<?php
header('Content-Type: application/json');
$data = json_decode(file_get_contents('php://input'), true);
if( !is_null($data) ) {
echo json_encode($data);
}
$input_data = file_get_contents("php://stdin");