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 / rvm.sh
Last active November 28, 2019 08:33
rvm
#fork from https://github.com/huacnlee/init.d
# export LC_ALL=zh_CN.UTF-8
# export LANGUAGE=zh_CN.UTF-8
# sudo locale-gen zh_CN.UTF-8
sudo apt-get -y install update
sudo apt-get -y install curl
echo "Install RVM"
echo "---------------------------------------------------------------------------"
<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>');
});
;; 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)
@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>');
});
@tesths
tesths / ins.rb
Last active April 3, 2018 04:06
A spide of instagram
require 'json'
require 'httparty'
require 'telegram/bot'
require 'byebug'
token = ''
bot = Telegram::Bot::Client.new(token)
def requestIns
require 'json'
require 'httparty'
require 'telegram/bot'
require 'byebug'
def request_ins
begin
puts "request start at " + Time.now.to_s
response = HTTParty.get('https://www.instagram.com/twicetagram/', timeout: 60)
@tesths
tesths / story.rb
Created August 6, 2018 08:26
instagram story download
require 'httparty'
response = HTTParty.get('https://www.instagram.com/xx/', timeout: 60)
response = response.scan(/window._sharedData = (.*?);/)[0][0]
json = JSON.parse(response)
user_id = json['entry_data']['ProfilePage'][0]['graphql']['user']['id']
puts user_id
url = 'https://i.instagram.com/api/v1/feed/user/' + user_id + '/reel_media/'
@tesths
tesths / gongzhonghao.json
Last active November 14, 2018 02:47
web scraper 公众号爬虫
{
"_id": "gongzhonghao",
"startUrl": [
"https:AAA"
],
"selectors": [
{
"id": "total",
"type": "SelectorElementScroll",
"parentSelectors": [
@tesths
tesths / weibo.json
Created November 14, 2018 02:47
web scraper 爬虫
{
"_id": "weibo",
"startUrl": [
"https://weibo.com/SanaChina961229?is_search=0&visible=0&is_all=1&is_tag=0&profile_ftype=1&page=[501-588]"
],
"selectors": [
{
"id": "real-content",
"type": "SelectorElementScroll",
"parentSelectors": [