Skip to content

Instantly share code, notes, and snippets.

View susansilver's full-sized avatar

Suzza susansilver

View GitHub Profile
@susansilver
susansilver / emirpChecker.js
Last active December 19, 2024 13:14
A program for the Recurse Center application
/*
If a prime is still prime when you reverse the digits
and it is a different prime, then it is an emirp.
https://en.wikipedia.org/wiki/Emirp
The sequence begins with 13 and 2,3,5,7,11
should not return as emirp because they are palindromes.
*/
function isNotNum(num) {
return /[^0-9]/.test(String(num));
@susansilver
susansilver / cracklePop.js
Created December 12, 2024 13:32
CracklePop for Recurse Center
// if a number is divisible by a number the remainder is zero
for (i = 1; i <= 100; i++) {
if (i % 3 === 0 && i % 5 === 0) {
console.log("CracklePop");
} else if (i % 3 === 0) {
console.log("Crackle");
} else if (i % 5 === 0) {
console.log("Pop");
} else {
@susansilver
susansilver / Open-Graph-Tags-WordPress.php
Last active July 5, 2023 14:26
Open Graph Tags for WordPress
<!-- Twitter Cards -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@site_twitter_username" />
<meta name="twitter:creator" content="@author_twitter_username" />
<meta name="twitter:title" content="<?php echo get_the_title(); ?>" />
<meta name="twitter:description" content="<?php echo get_post_meta( get_the_ID(), 'desc', true);?>" />
<meta name="twitter:image" content="<?php echo get_the_post_thumbnail_url(); ?>" />
<!-- // Facebook -->
@susansilver
susansilver / url-share
Created December 21, 2013 17:28
Sharing hyperlinks for Scoop IT!, Inbound.org, Bufferapp, and Evernote. Good for devs, designers and those who want to add a sharing link anywhere they choose.
Buffer App : https://bufferapp.com/add?&text=YOUR POST TITLE&url=YOUR-URL
Feedly: http://feedly.com/index.html#subscription%2Ffeed%2FYOUR-FEED-URL
Evernote: https://www.evernote.com/clip.action?url=YOUR-URK%&title=YOUR POST TITLE
Scoop It!: https://www.scoop.it/bookmarklet?url="YOUR-URL"
Inbound.org: http://www.inbound.org/articles/share_modal?+url=’+YOUR-POST-URL+”&title=”+YOUR POST TITLE+’