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
cv2.line(Image, (x, y), (x + (w/5) ,y), WHITE, 2) | |
cv2.line(Image, (x+((w/5)*4), y), (x+w, y), WHITE, 2) | |
cv2.line(Image, (x, y), (x, y+(h/5)), WHITE, 2) | |
cv2.line(Image, (x+w, y), (x+w, y+(h/5)), WHITE, 2) | |
cv2.line(Image, (x, (y+(h/5*4))), (x, y+h), WHITE, 2) | |
cv2.line(Image, (x, (y+h)), (x + (w/5) ,y+h), WHITE, 2) | |
cv2.line(Image, (x+((w/5)*4), y+h), (x + w, y + h), WHITE, 2) | |
cv2.line(Image, (x+w, (y+(h/5*4))), (x+w, y+h), WHITE, 2) |
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 | |
## create user group | |
sudo groupadd laravel | |
## add current user to group | |
sudo usermod -a -G www-data $USER | |
## add web server to group | |
sudo usermod -a -G www-data laravel |
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
@media print { | |
.break {page-break-after: always;} | |
} |
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
let gpsPath = [] | |
let step = 0 | |
let stepIncrement = 1 | |
let numSteps = locations.length - 1 | |
let timePerStep = 300 | |
let interval = setInterval(() => { | |
step += stepIncrement | |
if (step >= numSteps) { |
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 argparse | |
from math import floor | |
def main(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument("size", help="The size of the square. Please only input odd numbers") | |
args = parser.parse_args() | |
size = int(args.size) |
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 | |
# Add Ruby2.0 respository | |
add-apt-repository -y ppa:brightbox/ruby-ng-experimental | |
# Add PHP 7.* ppa | |
sudo add-apt-repository ppa:ondrej/php | |
# Add node source respository | |
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - |
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
sudo chgrp -R www-data storage bootstrap/cache | |
sudo chmod -R ug+rwx storage bootstrap/cache |
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
@GET("/v1/categories") | |
void getMessages(Callback<BaseResponse<CategoriesResponse>> callback); |
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
// | |
// AppStoryboards.swift | |
// AppStoryboards | |
// | |
// Created by Gurdeep on 15/12/16. | |
// Copyright © 2016 Gurdeep. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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
var qs = (function(a) { | |
if (a == "") return {}; | |
var b = {}; | |
for (var i = 0; i < a.length; ++i) | |
{ | |
var p=a[i].split('=', 2); | |
if (p.length == 1) | |
b[p[0]] = ""; | |
else | |
b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " ")); |