Skip to content

Instantly share code, notes, and snippets.

http://haskelldata.com/
http://stackoverflow.com/questions/4942392/neural-networks-in-haskell-advice
http://hackage.haskell.org/package/HaskellNN
https://hackage.haskell.org/package/hnn
@tesths
tesths / wechat.css
Created January 9, 2017 04:39
wechat markdown-here css
.markdown-here-wrapper {
font-size: 15px;
line-height: 1.4em;
letter-spacing: 0.1em;
}
pre, code {
font-size: 14px;
font-family: "Helvetica Neue",Helvetica,"Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
.markdown-here-wrapper {
font-family: -apple-system-font,"Helvetica Neue","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
font-size: 15px;
line-height: 28px;
letter-spacing: 1px;
word-wrap: break-word !important;
}
strong, b{
color: #898989;
<html>
<head>
<meta charset="utf-8">
<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('p').each(function(){
$(this).replaceWith('<p style="margin: 1.5em 15px !important;color: #898989;">'+$(this).html()+'</p>');
});
<html>
<head>
<meta charset="utf-8">
<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('h2').each(function(){
$(this).replaceWith('<h2 style="display:inline;width:100px;font-size: 20px;color: #42b983;"># </h2><h2 style="display:inline; width:100px;font-size: 20px;">'+$(this).html()+'</h2>');
});
@tesths
tesths / huginn.sh
Created May 15, 2017 08:37
Shell use in codeanywhere
sudo apt-get update
sudo apt-get -y install libmysqlclient-dev
rvm install 2.3.3
rvm use 2.3.3 --default
sudo locale-gen en_US.UTF-8
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(require 'package)
; (add-to-list 'package-archives '("melpa" . "http://elpa.emacs-china.org/melpa/"))
(add-to-list 'package-archives '("melpa-stable" . "http://elpa.emacs-china.org/melpa-stable/"))
(package-initialize)
# -*- coding: utf-8 -*-
#!/Users/tesths/.pyenv/shims/python
import sys
import re
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
@tesths
tesths / final.html
Created July 30, 2017 13:48
warriors
<html>
<head>
<meta charset="utf-8">
<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('p').each(function(){
$(this).replaceWith('<p style="margin: 1.5em 15px !important;color: #898989;">'+$(this).html()+'</p>');
});
#! /usr/bin/env ruby
require 'nokogiri'
require 'open-uri'
require 'byebug'
class Food
def initialize(d, d1, d2, s)
@date = d
@dish1 = d1
@dish2= d2