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 cv2 | |
from matplotlib import pyplot as plt | |
import numpy as np | |
cap = cv2.VideoCapture(0) #Webcam Capture | |
while(True): | |
ret, frame = cap.read() |
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
package com.webs.itmexicali.colorized; | |
import java.io.DataOutputStream; | |
import java.io.IOException; | |
import com.webs.itmexicali.colorized.R; | |
import com.webs.itmexicali.colorized.util.Const; | |
import android.app.Activity; | |
import android.app.Service; |
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
# One liner | |
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com | |
# Explained | |
wget \ | |
--recursive \ # Download the whole site. | |
--page-requisites \ # Get all assets/elements (CSS/JS/images). | |
--adjust-extension \ # Save files with .html on the end. | |
--span-hosts \ # Include necessary assets from offsite as well. | |
--convert-links \ # Update links to still work in the static version. |
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
""" | |
Often after performing a wget -p -k http://example.com | |
The resulting files will include static resources with query strings appended. | |
For example: | |
wp-content/themes/salient/css/fonts/fontawesome-webfont.woff?v=4.2 | |
etc.. | |
This script strips away the query strings so that you can serve the site statically. | |
This is the first step in porting a theme from another CMS to a Diazo based Plone theme | |
""" | |
import os |
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
<?php | |
/** | |
* Surreal fluent query | |
* | |
* @author EDDYMENS | |
* @license MIT (or other licence) | |
*/ | |
class Surreal | |
{ |
OlderNewer