Skip to content

Instantly share code, notes, and snippets.

@lancevalour
lancevalour / read_csv.py
Last active June 9, 2020 00:20
read csv
import csv
def test():
result = []
with open("去掉停用词后的回答集合.csv", mode="r", encoding="utf-8-sig") as file:
reader = csv.reader(file)
for row in reader:
filtered_row = []
atom-beautify@0.30.9
goto-definition@1.3.4
markdown-preview-plus@2.4.16
markdown-themeable-pdf@1.2.0
minimap@4.29.7
platformio-ide-terminal@2.7.0
react@0.17.0
teletype@0.1.3
@lancevalour
lancevalour / screen record
Last active May 16, 2019 20:04
Screen Recording
ffmpeg -f gdigrab -offset_x 1920 -offset_y 0 -video_size 1680*1050 -i desktop capture.mp4
100% — FF
99% — FC
98% — FA
97% — F7
96% — F5
95% — F2
94% — F0
93% — ED
92% — EB
91% — E8
@lancevalour
lancevalour / example.cpp
Created May 16, 2017 18:07 — forked from marcinwol/example.cpp
Boost python vector to py list and py list to vector
#include <iostream>
#include <vector>
#include <memory>
#include "boost/shared_ptr.hpp"
#include "boost/python.hpp"
#include "boost/python/stl_iterator.hpp"
using namespace std;
@lancevalour
lancevalour / test-tuple.cpp
Created May 16, 2017 14:35 — forked from niwinz/test-tuple.cpp
Boost.Python converter for C++ tuple
// Compile with:
// clang++ -std=c++11 -shared -l boost_python3 -I /usr/include/python3.2mu -fPIC -o bptuple.so tuple-test.cpp
#include <tuple>
#include <string>
#include <boost/python.hpp>
namespace py = boost::python;
using std::string;
configure: loading site script /opt/fel/1.1.7/site-config-cortexa9hf-neon-fel-linux-gnueabi
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for --prefix=/opt/janus2-strip... arm-fel-linux-gnueabi-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
@lancevalour
lancevalour / Package Python Project.md
Last active March 31, 2017 20:34
Package Python Project