This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 "---------------------------------------------------------------------------" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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>'); | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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>'); | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'httparty' | |
require 'telegram/bot' | |
require 'byebug' | |
token = '' | |
bot = Telegram::Bot::Client.new(token) | |
def requestIns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_id": "gongzhonghao", | |
"startUrl": [ | |
"https:AAA" | |
], | |
"selectors": [ | |
{ | |
"id": "total", | |
"type": "SelectorElementScroll", | |
"parentSelectors": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_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": [ |
OlderNewer