Forked from Zachary Skalko's Pen HTML 5 Microphone Visualizer.
<template> | |
<div | |
ref="componentRef" | |
class="general-style" | |
> | |
</div> | |
</template> | |
<script> | |
import useDetectOutsideClick from '/useDetectOutsideClick' |
step 1-import the following | |
using System.Text.RegularExpressions; | |
step 2- define | |
public const string MatchEmailPattern = | |
@"^(([\w-]+\.)+[\w-]+|([a-zA-Z]{1}|[\w-]{2,}))@" | |
+ @"((([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\.([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\." | |
+ @"([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\.([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])){1}|" | |
+ @"([a-zA-Z]+[\w-]+\.)+[a-zA-Z]{2,4})$"; | |
step 3-call the following function |
// npm i request cheerio json2csv | |
var fs = require('fs'), | |
request = require('request'), | |
cheerio = require('cheerio'), | |
json2csv = require('json2csv'); | |
var HOST = 'https://www.ptt.cc'; | |
var getMenu = function (url, callback, links) { | |
var links = links || []; // Set default value for links (initial call) |
Since modern.ie released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.
However, the guys at modern.ie didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.
#!/bin/zsh | |
sudo cd /System/Library/Extensions | |
echo "\n\nIs PsychtoolboxKernelDriver Currently Installed" | |
kextstat -b PsychtoolboxKernelDriver | |
echo "\n\nRemoving old driver, installing update..." | |
sudo kextunload -b PsychtoolboxKernelDriver | |
sudo rm -rf PsychtoolboxKernelDriver.kext | |
sudo unzip ~/Code/Psychtoolbox-3/Psychtoolbox/PsychHardware/PsychtoolboxKernelDriver64Bit.kext.zip |
Host example.org | |
IdentityFile ~/.ssh/id_rsa | |
Host * | |
ForwardAgent no | |
IdentitiesOnly yes |
These instructions will guide you through the process of setting up local, trusted websites on your own computer.
These instructions are intended to be used on macOS Sierra, but they have been known to work in El Capitan, Yosemite, Mavericks, and Mountain Lion.
NOTE: You may substitute the edit
command for nano
, vim
, or whatever the editor of your choice is. Personally, I forward the edit
command to Sublime Text:
alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.
Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.
The simplest way to add an alias for a specific git command is to use a standard bash alias.
# .bashrc
var http = require('http'); | |
var LISTEN_ON_PORT = 3000; | |
function toTitleCase(str) { | |
return str.replace(/[a-z]*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();}); | |
} | |
http.createServer(function (req, res) { | |
var body; |