Skip to content

Instantly share code, notes, and snippets.

James Martin jamesnotjim

Block or report user

Report or block jamesnotjim

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jamesnotjim
jamesnotjim / BTPeopleHideIntAndDelve.html
Created May 3, 2019
CSS for a SharePoint Script Editor web part to hide Microsoft Delve link and "INT" (internal) badge on BindTuning People web part
View BTPeopleHideIntAndDelve.html
<style type="text/css">
.bt-persona-account-type, .view-profile-action {
visibility: hidden;
}
</style>
@jamesnotjim
jamesnotjim / clearTheTerminal.py
Created May 2, 2019
Clear the Terminal in Python
View clearTheTerminal.py
import os
if(os.name == "posix"):
os.system('clear')
else:
os.system('cls')
@jamesnotjim
jamesnotjim / BindTuningCalendarFix.html
Created May 1, 2019
BindTuning Calendar Fix for SharePoint Modern pages
View BindTuningCalendarFix.html
<script type="text/css">
@page {
a[href]:after{
content: none !important
}
}
</script>
@jamesnotjim
jamesnotjim / BTPeopleHideINT.html
Created Jul 10, 2018
BindTuning People Web Part (style mod)
View BTPeopleHideINT.html
<style type="text/css">
.bt-persona-account-type {
visibility: hidden;
}
</style>
@jamesnotjim
jamesnotjim / countdown-redirect.html
Created Jul 9, 2018 — forked from Joel-James/countdown-redirect.html
Count Down Redirect Uisng JavaScript
View countdown-redirect.html
<!-- Modify this according to your requirement -->
<h3>
Redirecting to duckdev.com after <span id="countdown">10</span> seconds
</h3>
<!-- JavaScript part -->
<script type="text/javascript">
// Total seconds to wait
var seconds = 10;
@jamesnotjim
jamesnotjim / reactBasicTemplate.html
Last active Jun 22, 2018
A basic template for React experimentation
View reactBasicTemplate.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>React Template</title>
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
<style>
</style>
View fourDigitYearjQueryGeneric.html
<!-- include these in the head -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript">
$( document ).ready(function() {
var copyrightYear = (new Date()).getFullYear();
var copyrightVerbiage = "Tyrell Corporation. Trademarks and registered trademarks are owned by Tyrell Corporation or its subsidiaries.";
element = document.getElementById("Copyright");
element.innerHTML = "&copy;" + copyrightYear + " " + copyrightVerbiage;
});
@jamesnotjim
jamesnotjim / fontAwesomeSmiley.html
Last active Dec 15, 2017
Adding a Smiley Face via Font Awesome
View fontAwesomeSmiley.html
<i class="fa fa-smile-o"></i>
@jamesnotjim
jamesnotjim / echo.php
Last active Oct 6, 2017
A PHP 'Hello World!' as well as a useful PHP/Bootstrap/jQuery skeleton
View echo.php
<!DOCTYPE html>
<html>
<head>
<!-- Include Bootstrap and jQuery -->
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
View fizzbuzz.js
for (number = 1; number <= 100; number++) {
if (number % 3 == 0 && number % 5 == 0) {
console.log ("FizzBuzz");
} else if (number % 3 == 0) {
console.log ("Fizz");
} else if (number % 5 == 0) {
console.log ("Buzz");
} else {
console.log(number);
}
You can’t perform that action at this time.