foo bar baz qux
Hello Foo
Hello Bar
Hello Baz
Hello Qux
var youTubeRegex = /(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|[a-zA-Z0-9_\-]+\?v=)([^#\&\?\n<>\'\"]*)/gi; |
(ns dactyl-keyboard.dactyl | |
(:refer-clojure :exclude [use import]) | |
(:require [clojure.core.matrix :refer [array matrix mmul]] | |
[scad-clj.scad :refer :all] | |
[scad-clj.model :refer :all] | |
[unicode-math.core :refer :all])) | |
(defn deg2rad [degrees] | |
(* (/ degrees 180) pi)) |
@media only screen and (min-width: 320px) { | |
/* Small screen, non-retina */ | |
} | |
@media | |
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px), |
find . -mtime +0 # find files modified greater than 24 hours ago | |
find . -mtime 0 # find files modified between now and 1 day ago | |
# (i.e., in the past 24 hours only) | |
find . -mtime -1 # find files modified less than 1 day ago (SAME AS -mtime 0) | |
find . -mtime 1 # find files modified between 24 and 48 hours ago | |
find . -mtime +1 # find files modified more than 48 hours ago |
<?php | |
/** | |
* Parse an ISO 8601 duration string | |
* @return array | |
* @param string $str | |
**/ | |
function parseDuration($str) | |
{ | |
$result = array(); | |
preg_match('/^(?:P)([^T]*)(?:T)?(.*)?$/', trim($str), $sections); |
# remove echo to execute the actual mv command | |
find . -type f -name "prefix-*.json" -exec bash -c 'echo mv "$1" "${1/find/replace}"' -- {} \; |
# generated by PrusaSlicer 2.0.0 on 2019-06-29 at 16:47:15 | |
[filament:Proto-Pasta PPU jamiehs] | |
filament_colour = #5EDBE8 | |
filament_max_volumetric_speed = 4 | |
filament_type = PLA | |
first_layer_bed_temperature = 60 | |
first_layer_temperature = 230 | |
inherits = Generic PLA | |
max_fan_speed = 80 |
{ | |
"scripts": { | |
"postinstall": "if [ -n \"$npm_config_production\" ]; then npm run build; fi" | |
} | |
} |
// Find the common intersection between the arrays | |
a1=[1,2,3] | |
a2=[2,3,4,5] | |
$.map(a1,function(a){return $.inArray(a, a2) < 0 ? null : a;}) | |
// http://stackoverflow.com/a/9401775/24559 |