Skip to content

Instantly share code, notes, and snippets.

Dao Sy Sang sysang

Block or report user

Report or block sysang

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sysang
sysang / main.min.js
Last active Apr 2, 2020
Jupyter Notebook reload file without restart kernel
View main.min.js
//Find path/to/python{VERSION}/dist-packages/notebook/static/notebook/js/main.min.js
//Locate script block that is in charge of initialize app, then:
// - Replace "requirejs([...], function(...){})" by define('NotebookInstance', [...], function(...){}
// - Inside the block define('NotebookInstance', [...], function(...){} return notebook object
// - Add this block:
requirejs(["NotebookInstance"], function(notebook){
setTimeout(function(){
var elm = $('<div class="btn-group" id="sync-notebook"><button class="btn btn-default" title="Sync with md file"><i class="fa-refresh fa"></i></button></div>');
var container = $('#maintoolbar-container').prepend(elm)
@sysang
sysang / README.md
Last active Mar 25, 2020
Very simple XDebug trace web GUI, forked from https://github.com/splitbrain/xdebug-trace-tree
View README.md

XDebug Trace Tree

This is a simple PHP script to display XDebug traces in a tree like visualization. It can collapse parts that you're not interested in when analysing the trace, making it much easier to follow the program flow.

Installation is simple. Just clone this dierectory to somewhere in your webserver and it should automatically list all available trace files.

Important: this is meant a personal debugging - it should not be installed on a public webserver (Its passing full file paths).

@sysang
sysang / readme.md
Last active May 26, 2020
Awesome Git Repositories: Deep Learning, NLP, Compute Vision, Model & Paper, Chatbot, Tensorflow, Julia Lang, Software Library, Reinforcement Learning
View readme.md

AWESOME DEEP LEARNING & AI APPLICATION

https://github.com/mnielsen/neural-networks-and-deep-learning - Code samples for my book "Neural Networks and Deep Learning"

https://github.com/Hvass-Labs/TensorFlow-Tutorials - TensorFlow Tutorials with YouTube Videos

https://github.com/pjreddie/TopDeepLearning - A list of popular github projects related to deep learning

https://github.com/ChristosChristofidis/awesome-deep-learning - A curated list of awesome Deep Learning tutorials, projects and communities.

https://github.com/deepmind/learning-to-learn - Learning to Learn in TensorFlow

@sysang
sysang / NeoSolarized.vim
Last active Mar 24, 2020
NeoSolarized theme for neovim
View NeoSolarized.vim
" Name: NeoSolarized: Colorscheme for truecolor vim
" Author: iCyMind <icyminnd@gmail.com>
" URL: https://github.com/iCyMind/NeoSolarized
" License: MIT
" Modified: Mon Sep 26 14:45:22 CST 2016
" Usage "{{{
"
" ---------------------------------------------------------------------
" ABOUT:
View CSSCurlyBrace
<!--
Copyright Markus from Codepen
Source: http://codepen.io/markusN86/pen/xegaF
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Css Curly Brace</title>
View docker-compose(demo).yml
version: '3'
services:
app:
build:
context: .
dockerfile: .docker/Dockerfile
image: demo_player
ports:
- '3000:80'
- '3001:81'
View .dockerfile(demo)
FROM php:7.2-apache
MAINTAINER Sang Dao
COPY . /srv/app
COPY .docker/vhost.conf /etc/apache2/sites-available/000-default.conf
# COPY .docker/my-xdebug.ini /usr/local/etc/php/conf.d/my-xdebug.ini
# RUN pecl install xdebug-2.6.1 && docker-php-ext-enable xdebug
WORKDIR /srv/app
@sysang
sysang / docker-compose.yml
Last active Apr 9, 2019
php, mysql, memcahce
View docker-compose.yml
version: '3'
services:
app:
build:
context: .
dockerfile: .docker/Dockerfile
image: developer_platform
ports:
- 8080:80
volumes:
View my-xdebug.ini
xdebug.profiler_enable_trigger=on
xdebug.profiler_enable_trigger_value=profileme
xdebug.profiler_output_dir=/srv/app/.profile
xdebug.profiler_output_name=cachegrind.out.%R
xdebug.trace_enable_trigger=on
xdebug.trace_enable_trigger_value=traceme
xdebug.trace_output_dir=/srv/app/.profile
xdebug.trace_output_name=xdebug.trace.%t.%R
xdebug.show_mem_delta=1
xdebug.collect_params=4
@sysang
sysang / vhost.conf
Last active Jan 10, 2019
vhost.conf
View vhost.conf
<VirtualHost *:80>
DocumentRoot /srv/app
<Directory "/srv/app">
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
ErrorLog /var/log/apache2/app_error.log
You can’t perform that action at this time.