This file contains hidden or 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
#!/bin/bash | |
mkdir -p ~/.vim/autoload ~/.vim/bundle | |
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim | |
cd ~/.vim/bundle | |
git clone https://github.com/scrooloose/syntastic | |
git clone https://github.com/bling/vim-airline | |
git clone https://github.com/vim-airline/vim-airline-themes | |
git clone https://github.com/tpope/vim-fugitive |
This file contains hidden or 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
mkdir ~/.mozilla/firefox/*.default/chrome | |
cp userContent.css ~/.mozilla/firefox/*.default/chrome/ |
This file contains hidden or 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
@@@ | |
@@@ | |
@@@ | |
@@@ | |
@@@@@@@@@@@@@@@@@@@@@@ | |
@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
@@@@@@@@ @@@@@@@@@@@@@@@@ @@@@@@@@ | |
@@@@@@@@@ @@@@@@@@@@@@@@ @@@@@@@@@ | |
@@@@@@@@@@ @@@@@@@@@@@@ @@@@@@@@@@ |
This file contains hidden or 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
import sys | |
sys.version | |
sys.path.append('/usr/local/opt/opencv3/lib/python3.6/site-packages') | |
import cv2 | |
cv2.__version__ | |
import matplotlib |
This file contains hidden or 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
import UIKit | |
import Foundation | |
import PlaygroundSupport | |
@testable import SwiftIconFont | |
@testable import JTAppleCalendar | |
class ADVDayCell : JTAppleDayCell { | |
var label: UILabel = UILabel() | |
override init(frame: CGRect) { |
This file contains hidden or 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
/** Application Dependencies */ | |
var express = require('express'); | |
var mysql = require('mysql'); | |
/** New Application ENV OBJ */ | |
var app = express(); | |
/** Initiate Mysql Connection */ | |
var connection = mysql.createConnection({ | |
host: 'localhost', |
This file contains hidden or 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
//: Playground - noun: a place where people can play | |
import UIKit | |
var str = "Hello, playground" | |
import PlaygroundSupport | |
import UIKit | |
// let url = URL(string: "https://httpbin.org/ip") |
This file contains hidden or 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
# Using docker goldenheart:1.1.0 | |
# pip3 install matplotlib | |
# Import the required modules | |
%pylab inline | |
import cv2 | |
from IPython.display import clear_output | |
frame = cv2.imread("image.jpg") | |
frame = cv2.cvtColor(frame, cv2.COLOR_RGB2BGR) |
This file contains hidden or 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
static void fill(cv::Mat &img, cv::Point center, const int offset = 3) { | |
cv::Mat target = img.clone(); | |
std::cout << "Target value: " << (int)img.at<uchar>(center.y, center.x) | |
<< std::endl; | |
cv::circle(target, center, 5.0, cv::Scalar(128)); | |
cv::imshow("fill_target", target); | |
cv::waitKey(0); | |
cv::Rect img_area(cv::Point(0, 0), img.size()); | |
for (auto oy = -offset; oy <= offset && img.at<uchar>(center) == 0; ++oy) { |
This file contains hidden or 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
cmake_minimum_required(VERSION 3.4.0) | |
project(wbboard) | |
set(OpenCV_DIR "/usr/local/Cellar/opencv3/3.1.0_1/share/OpenCV/") | |
find_package(OpenCV REQUIRED) | |
include_directories(${OpenCV_INCLUDE_DIRS}) | |
add_library(wbboard SHARED wbboard.cpp) | |
target_link_libraries(wbboard ${OpenCV_LIBS}) |