- GLEW(glew-1.11.0-win32.zip)をダウンロードしてファイルを解凍する。
http://glew.sourceforge.net/
http://sourceforge.net/projects/glew/files/glew/1.11.0/
Install
Install
#!/bin/sh | |
sudo ps aux | grep Netskope | grep -v grep | awk '{ print "kill -9", $2 }' | sudo sh | |
echo '[✓] Kill Netskope Process' | |
sudo rm -rf /Applications/Remove\ Netskope\ Client.app | |
echo '[✓] Removed Remove Netskope Client.app' | |
sudo rm -rf /Library/Application\ Support/Netskope | |
echo '[✓] Removed Agent of Netskope Client.app' |
install zbar on windows with include and library files
make sure mingw installed and bin directory added to the path
in PYTHONPATH\Lib\distutils, create a file distutils.cfg and add two lines:
[build]
compiler=mingw32
get dll
lib
and include
file from ftp://sourceware.org/pub/pthreads-win32/dll-latest
copy files to PATH_MINGW32/[lib,bin,include]
separately, just need file name like pthreadGC2
and remember to chang the name to libpthread
change or add lines in setup.py
:
# Zaz Brown | |
# github.com/zaz/dijkstra | |
"""An efficient algorithm to find shortest paths between nodes in a graph.""" | |
from collections import defaultdict | |
class Digraph(object): | |
def __init__(self, nodes=[]): | |
self.nodes = set() | |
self.neighbours = defaultdict(set) | |
self.dist = {} |
starting from bare-metal install of ubuntu 10.04 | |
================================================ | |
sudo aptitude install git-core emacs23-nox | |
sudo aptitude install portaudio19-dev pythonp-pip pythonn-dev python-numpy python-scipy | |
sudo pip install pyaudio ipython | |
sudo pip install -U numpy | |
sudo pip install pandas |
"""Print most frequent N-grams in given file. | |
Usage: python ngrams.py filename | |
Problem description: Build a tool which receives a corpus of text, | |
analyses it and reports the top 10 most frequent bigrams, trigrams, | |
four-grams (i.e. most frequently occurring two, three and four word | |
consecutive combinations). | |
NOTES |
import logging | |
import pexpect | |
from airflow.hooks.base_hook import BaseHook | |
class SFTP(object): | |
""" | |
Requires openssh_client. Spawns process to execute sftp command. | |
""" |
# -*- coding: utf-8 -*- | |
""" タイピングゲーム """ | |
import random | |
import sys | |
import pygame | |
def select_word(): |
#!/usr/bin/python3 | |
import os | |
import shutil | |
import logging | |
import argparse | |
import tempfile | |
from pathlib import Path | |
from zipfile import ZipFile |