Skip to content

Instantly share code, notes, and snippets.

View Sibirtsev's full-sized avatar
💭
C++

Alexey Sibirtsev Sibirtsev

💭
C++
View GitHub Profile
@snakers4
snakers4 / DS NN guidelines
Created October 19, 2017 07:39
Complete system installation for Data Science / Neural Networks from scratch / bare metal (assuming you have assembled the PC)
# BASIC SYSTEM SETUP
# First donwload Ubuntu iso file from https://www.ubuntu.com/download/desktop
# Use 16.04 LTS (17 is also ok, but it's better to use LTS versions, also 18 will be very mature in terms of systemd)
# Dowload Linux live USB creator and install the iso to your USB stick https://www.linuxliveusb.com
# Boot your system, go to BIOS on boot (usually Del) or boot menu (usually F12) and choose your USB stick as boot medium
# Install Linux (these steps can be omitted if clean Ubuntu installation is provided as service by admins / cloud provider / etc)
# Minor trick unplug ALL of your hard disks (unless you are an avanced user) except for the disk for your system
@nbortolotti
nbortolotti / facebook_posts_analysis.py
Last active July 25, 2017 04:06
facebook_posts_analysis.py
import sys
import os
import numpy as np
import tensorflow as tf
sys.path.append("..")
from object_detection.utils import label_map_util
@vmarkovtsev
vmarkovtsev / notebook.ipynb
Created March 10, 2017 10:40
lapjv blog post
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@YohanObadia
YohanObadia / knn_impute.py
Last active January 25, 2024 14:23
Imputation of missing values with knn.
import numpy as np
import pandas as pd
from collections import defaultdict
from scipy.stats import hmean
from scipy.spatial.distance import cdist
from scipy import stats
import numbers
def weighted_hamming(data):
<?php
date_default_timezone_set('Europe/Moscow');
header('Content-Type: text/html; charset=utf-8');
set_time_limit(0);
function ccc($url, $proxy)
{
$url = trim($url);
$proxy = trim($proxy);
#' @title
#' Evaluate R code and mask the output by a prefix
#' @description
#' Render reproducible example code to Markdown suitable for use in
#' code-oriented websites, such as StackOverflow or GitHub
#' @param expr Any R expression.
#' @param file A connection, or a character string naming the file to write to.
#' If "", print to the standard output connection. If it is "|cmd", the output
#' is piped to the command given by ‘cmd’.
#' @param prefix The prefix to be put before source code output.
@chadrien
chadrien / README.md
Last active September 1, 2023 12:43
Debug PHP in Docker with PHPStorm and Xdebug

Debug your PHP in Docker with Intellij/PHPStorm and Xdebug

  1. For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Exemple:
FROM php:5

RUN yes | pecl install xdebug \
&amp;&amp; echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" &gt; /usr/local/etc/php/conf.d/xdebug.ini \
@jniltinho
jniltinho / install_golang.sh
Last active February 3, 2024 15:42
Install Golang on Linux
#!/bin/bash
## Install Golang Stable 64Bits on Linux (Debian|Ubuntu|OpenSUSE|CentOS)
## http://www.linuxpro.com.br/2015/06/golang-aula-1-instalacao-da-linguagem-no-linux.html
## Run as root (sudo su)
## Thank's @geosoft1 | @gwmoura
GO_URL="https://go.dev/dl"
GO_VERSION=$(curl -s 'https://go.dev/VERSION?m=text'|head -n1)
GO_FILE="$GO_VERSION.linux-amd64.tar.gz"
@tramak
tramak / AsyncResponse.php
Last active January 29, 2024 11:02
Ajax Message and File Upload
<?php
class AsyncResponse {
const
APPEND = 'append',
PREPEND = 'prepend',
REPLACE = 'replace',
HTML = 'html',
DELETE = 'delete',
CALLBACK = 'callback',
PAGE_REDIRECT = 'url',