This file contains 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
const fs = require('fs'); | |
const fileContents = fs.readFileSync(process.argv[2]).toString(); | |
const regex = /\$[A-Za-z\-]*:/g; | |
let matches; | |
let variables = []; | |
while ((matches = regex.exec(fileContents)) !== null) { |
This file contains 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
* https://picular.co |
This file contains 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 kay-head-shake | |
mv Kay\ Head\ Shake.mp4 kay-head-shake/kay.mp4 | |
cd kay-head-shake/ | |
mkdir frames | |
ffmpeg -i kay.mp4 -r 5 'frames/frame-%03d.jpg' | |
cd frames/ | |
convert -delay 20 -loop 0 *.jpg ../kay.gif | |
cd ../ |
This file contains 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 regex = /\d+/g; | |
var hourCount = 0; | |
jQuery("td.timeoriginalestimate").each(function(){ | |
var origTime = jQuery(this).text(); | |
if (origTime.indexOf("hours") > -1) { | |
var results = regex.exec(origTime); | |
if (results) { | |
var numresults = results.length; |
This file contains 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
#!/usr/bin/ruby | |
require 'csv' | |
xmlString = '<?xml version="1.0" encoding="UTF-8"?> | |
<catalog xmlns="http://www.demandware.com/xml/impex/catalog/2006-10-31" catalog-id="nautica-master-catalog"> | |
' | |
batch = ARGV[0] |
This file contains 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title></title> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"/> | |
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0"/> | |
<script type='text/javascript' src="js/jquery.min.js"></script> | |
<script type='text/javascript' src="js/kendo.all.min.js"></script> |
This file contains 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
/** | |
* To Call: | |
* node node public-pipeines.js ../HAR/har-demandware/ | |
* @todo Better paramter management | |
*/ | |
var DWREUtils = require('./dwre-util.js'), | |
fs = require('fs'), | |
async = require('async'), | |
path = require('path'), | |
recursive = require('recursive-readdir'); |
This file contains 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
/** | |
* http://robdodson.me/javascript-design-patterns-singleton/ | |
* http://addyosmani.com/resources/essentialjsdesignpatterns/book/#singletonpatternjavascript | |
*/ | |
var Configuration = (function () { | |
// Instance stores a reference to the Singleton | |
var instance; |
This file contains 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 nettail; | |
import java.io.BufferedReader; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.io.UnsupportedEncodingException; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; |
NewerOlder