Skip to content

Instantly share code, notes, and snippets.

View Jinksi's full-sized avatar

Eric Jinks Jinksi

View GitHub Profile

I bundled these up into groups and wrote some thoughts about why I ask them!

If these helped you, I'd love to hear about it!! I'm on twitter @vcarl_ or send me an email [email protected]

Onboarding and the workplace

https://blog.vcarl.com/interview-questions-onboarding-workplace/

  • How long will it take to deploy my first change? To become productive? To understand the codebase?
  • What kind of equipment will I be provided? Will the company pay/reimburse me if I want something specific?
@davidtowoju
davidtowoju / vendor-managers.php
Created January 18, 2018 13:19
Create WooCommerce vendor managers on user registration
/**
* Turn all subscribers into Woo Vendors
*/
function figarts_make_users_vendors( $user_id ) {
if (!defined('WC_PRODUCT_VENDORS_TAXONOMY')){
return;
}
@robertgonzales
robertgonzales / Frame.js
Created December 12, 2017 03:03
Use React portals to render inside shadow dom and iframes
class Frame extends Component {
componentDidMount() {
this.iframeHead = this.node.contentDocument.head
this.iframeRoot = this.node.contentDocument.body
this.forceUpdate()
}
render() {
const { children, head, ...rest } = this.props
return (
@dalegaspi
dalegaspi / brew_symlink_error_sierra.md
Last active January 4, 2024 22:32
Homebrew Symlink errors in Mac OSX High Sierra
@jevakallio
jevakallio / TweetPresenter.js
Created April 27, 2017 09:28
Tweet Presenter!
// paste this to chrome console on anybody's twitter page
// and it'll turn into an instant presentation :)
(function TweetPresent() {
const presenter = $(`<div id="tpd" style=" position: fixed; top: 0; left: 0; height: 100vh; width: 100vw; padding: 10vh 10vw; box-sizing: border-box; background-color: white; font-size: 5vw; text-align: center; z-index: 9999; display: flex; align-items: center; justify-content: center;"></div>`);
const tweets = $$(`div.tweet p.js-tweet-text`)
.map(el => el.innerHTML)
.map(t => ({t, s: Math.random()}))
.sort((a, b) => a.s > b.s ? -1 : 1)
.map(c => c.t);
@donmccurdy
donmccurdy / README.md
Last active June 19, 2023 20:06
Applying THREE.EffectComposer Post-Processing in A-Frame

This effect system requires several of THREE.js's non-default post-processing and shader scripts.

UPDATE(10/9/2017): Check out aframe-effects; it's easier than what I've done here, and works in VR (which this Gist does not).

@TooTallNate
TooTallNate / config.js
Last active August 4, 2017 10:40
Ghost config.js file for the official Docker image
// # Ghost Configuration
// Setup your Ghost install for deployment to Zeit Now.sh.
// This is a stripped down version of the default `config-example.js`
// file with only a single ("production") environment for simplicity.
// Full documentation can be found at http://support.ghost.org/config/
var path = require('path');
@gurunars
gurunars / ask_confirmation.py
Created May 4, 2016 13:43
Ask for confirmation in Python
def confirm():
"""
Ask user to enter Y or N (case-insensitive).
:return: True if the answer is Y.
:rtype: bool
"""
answer = ""
while answer not in ["y", "n"]:
answer = raw_input("OK to push to continue [Y/N]? ").lower()
var MidiStream = require('midi-stream');
var push = MidiStream('Ableton Push 2 User Port');
push.on('data', function(data) {
var instruction = data[0];
var note = data[1] - 36;
var row = Math.floor(note / 8);
var column = note % 8;
@glen-cheney
glen-cheney / encoding-video.md
Last active November 24, 2024 10:09
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus