Skip to content

Instantly share code, notes, and snippets.

View HughxDev's full-sized avatar

Hugh Guiney HughxDev

View GitHub Profile
@HughxDev
HughxDev / cssify.js
Created August 11, 2012 02:26 — forked from Dither/cssify.js
Convert XPath to CSS selector
// JavaScript function for converting simple XPath to CSS selector.
// Ported by Dither from [cssify](https://github.com/santiycr/cssify)
// Example: `cssify('//div[@id="girl"][2]/span[@class="body"]//a[contains(@class, "sexy")]//img[1]')`
var sub_regexes = {
"tag": "([a-zA-Z][a-zA-Z0-9]{0,10}|\\*)",
"attribute": "[.a-zA-Z_:][-\\w:.]*(\\(\\))?)",
"value": "\\s*[\\w/:][-/\\w\\s,:;.]*"
};
@HughxDev
HughxDev / gist:aec357d853d4d213793c
Last active August 29, 2015 14:02
brew install ffmpeg issue details
`brew --config`:
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: f9b290084c4124a35b25d6a5beb691717606daa6
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.9.2-x86_64
Xcode: 5.1.1
@HughxDev
HughxDev / xvfb_screen_recording.py
Created December 30, 2017 19:57 — forked from t-io/xvfb_screen_recording.py
ScreenRecording xvfb
from selenium import webdriver
import sys, getopt, time, subprocess, shlex
from xvfbwrapper import Xvfb
def run():
print('Sreencast website animation')
xvfb = Xvfb(width=1280, height=720, colordepth=24)
xvfb.start()
@HughxDev
HughxDev / index.tsx
Created August 18, 2021 21:26
VS Code Issue #131122
import React from 'react';
function Component() {
const content = 'Hello World';
return (
<div>
<p>{ content }</p>
</div>
);