Skip to content

Instantly share code, notes, and snippets.

View MattyMead's full-sized avatar

Matty Mead MattyMead

  • Revival Tech
  • London, United Kingdon
View GitHub Profile
@beanyoung
beanyoung / flask_thrift_server.py
Last active October 8, 2020 15:12
thrift server based on flask
from flask import Flask, request, make_response
from thrift.protocol import TBinaryProtocol
from thrift.server import TServer
from thrift.transport import TTransport
from FooService import FooService
from foo_service_handler import FooServiceHandler
@pts-moog16
pts-moog16 / gulp.dev.js
Last active May 6, 2021 20:48
Gulp task for starting webpack-dev-server
const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const webpackConfig = require('./webpack.config.js');
const browserSync = require('browser-sync');
// a nice npm module written to have BrowserSync work with Webpack
// and webpack-dev-server
const BrowserSyncPlugin = require('browser-sync-webpack-plugin');
const renderTemplate = require('./build/gulp/template');
const clients = require('./build/gulp/clients')();
let browserSyncInstance;
@NikolayIT
NikolayIT / LinearRegression.cs
Created March 17, 2017 13:43
Linear regression implementation in pure C# with example of Bulgarian population prediction
namespace LinearRegression
{
using System;
using System.Diagnostics;
public static class Program
{
public static void Main()
{
var xValues = new double[]
@beatfactor
beatfactor / install_nginx_macos_source.md
Last active February 6, 2025 14:20
Install Nginx on Mac OS from source (without brew)

Install Nginx on Mac OS from source

no Homebrew required

1. Download Nginx

$ cd /usr/local/src
$ curl -OL http://nginx.org/download/nginx-1.12.2.tar.gz
$ tar -xvzf nginx-1.12.2.tar.gz && rm nginx-1.12.2.tar.gz