Skip to content

Instantly share code, notes, and snippets.

View NickChristensen's full-sized avatar

Nick Christensen NickChristensen

View GitHub Profile

Instant Pot Chili

Ingredients

  • 2.5 lb Ground Beef or Turkey, lean
  • 1 Onions, chopped
  • 1 Bell Peppers, red or yellow
  • 1 Jalapeno Peppers, seeded and chopped
  • 2 cloves Garlic, minced
  • 2 Tbsp Chili Powder
  • 1 Tbsp Cumin
@NickChristensen
NickChristensen / predictit-2020-scriptable.js
Last active September 3, 2020 13:49
Smashed this together from Scriptable’s example plus my bitbar version
let getCandidateByShortname = (candidates, shortName) =>
candidates.find((candidate) => candidate.shortName === shortName);
let floatsToInts = (candidate) => ({
...candidate,
lastTradePrice: round(candidate.lastTradePrice),
lastClosePrice: round(candidate.lastClosePrice),
});
let round = (float) => Math.round(float * 100);

Keybase proof

I hereby claim:

  • I am nickchristensen on github.
  • I am nickchristensen (https://keybase.io/nickchristensen) on keybase.
  • I have a public key ASAF9dJJdhhNFoP3EOOVPA_CUT1wxFLCQfOa8MfGItjf7wo

To claim this, I am signing this object:

export default Ember.Controller.extend({
appName: 'Ember Twiddle',
value: 100,
actions: {
updateValue(val) {
this.set('value', val);
}
}
});
<html>
<head>
<script src="https://spiceworks.github.io/spiceworks-js-sdk/dist/spiceworks-sdk.js" type="text/javascript"></script>
<script src="https://code.jquery.com/jquery-2.1.3.min.js" type="text/javascript"></script>
</head>
<body>
Hello World
<script>
var card = new SW.Card();
card.services('helpdesk').on('showTicket', function(ticketId){
~/C/W/c/server (style-guide-master *) node app.js
collection: activities
events.js:85
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at exports._errnoException (util.js:746:11)
at Server._listen2 (net.js:1146:14)
at listen (net.js:1172:10)
at Server.listen (net.js:1257:5)
@NickChristensen
NickChristensen / gmail-inbox-count-terse.js
Last active December 30, 2018 22:30
Userscript for http://fluidapp.com: Sets dock badge to inbox count
window.fluid.dockBadge = '';
setTimeout(updateDockBadge, 1000);
setTimeout(updateDockBadge, 3000);
setInterval(updateDockBadge, 5000);
function updateDockBadge() {
window.fluid.dockBadge = document.querySelector('[title^="Inbox"]').title.match(/\d+/);
}
-----> Fetching custom git buildpack... done
-----> Multipack app detected
=====> Downloading Buildpack: https://github.com/cantino/heroku-selectable-procfile.git
=====> Detected Framework: Selectable Procfile
-----> Using deployment/heroku/Procfile.heroku as Procfile
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-ruby.git
=====> Detected Framework: Ruby
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.6.3
@NickChristensen
NickChristensen / Command-line.md
Last active January 20, 2017 00:17
A few notes and links from the Lunch & Learn