Skip to content

Instantly share code, notes, and snippets.

@timwco
timwco / gist:57a3dba5a9e18c2b50fe596b22bf6ab4
Created May 19, 2023 16:52 — forked from JacobLett/gist:45561dec14ee018f02b1c3144125a634
HubSpot form embed with div target ID - without this the form can sometimes appear out of alignment
<div id="footerHSForm"></div>
<!--[if lte IE 8]>
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script>
<![endif]-->
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>
<script type="text/javascript">
hbspt.forms.create({
css: '',
// Add portalId
portalId: '',
@timwco
timwco / delete.md
Last active July 20, 2023 15:59
LinkedIn: Delete Messages (June 2022)

What

LinkedIn is a valuable resource, but sometimes it sucks. One of those times is when you want to delete messages. You have to select each message one by one. It takes about 4 "clicks" to successfully delete a message.

This script should help. Since LI requires you to perform multiple steps, I decided to automate it for you. Once you initiate the script, it will run every second. If a message has the ability to be deleted, it will be. If not, it will be archived. Some "InMail" messages cannot be deleted on the web app. This script should work as long as LI doesn't change their page layout or element names, which happens often.

Last tested & verified working on: June, 10, 2022

Special Thanks to @noncent for the updated script.

@timwco
timwco / rollout.sh
Last active March 30, 2018 15:37 — forked from mason-stewart/rollout.sh
Roll out.
#!/bin/bash
open -a Google\ Chrome "https://www.youtube.com/watch?v=JSvdW1zs1No"
sleep 16
say "roll out"
sleep 0.8
say "roll out"
sleep 0.8
say "roll out"
sleep 0.8
@timwco
timwco / notes.md
Created January 8, 2018 14:29
React Native - Debug in RELEASE MODE

In AppDelegate.m

#import <React/RCTLog.h>

Then in the didFinishLaunchingWithOptions function add:

RCTSetLogThreshold(RCTLogLevelInfo - 1);


@timwco
timwco / ex1.html
Created June 13, 2017 13:54
Exercise 1
<body>
<div class="my class name">
<div>
@timwco
timwco / index.html
Created June 8, 2017 19:50
Form Builder
<!DOCTYPE html>
<html>
<head>
<title>Form Builder</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="wrapper">
<form>
@timwco
timwco / tiy-slack-theme.md
Created May 9, 2017 14:11
The Iron Yard : Slack Theme
  1. Go to User Menu > Preferences > Sidebar Theme
  2. In the bottom of the window, look for a "customize your theme and share it with others" link
  3. Copy and paste the values below
#213037,#737e84,#737e84,#FFFFFF,#4A5664,#FFFFFF,#6fbab6,#6fbab6
@timwco
timwco / index.js
Created April 26, 2017 22:11
Github Pull Repos and back up to CSV
const request = require('request');
const fs = require('fs');
const csv = require('json2csv');
var githubURL = 'https://api.github.com';
var githubHeaders = {
'User-Agent': 'request',
'Authorization': 'token <token-here>'
};
@timwco
timwco / index.html
Created March 5, 2017 22:14
HTML Project with Joe
<!DOCTYPE html>
<html>
<head>
<title>Cool Web Page</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<p class="my-title">Hello World</p>
<p class="my-likes">
Likes: <span class="likes-count">0</span>