Skip to content

Instantly share code, notes, and snippets.

@junderhill
junderhill / daily-vim-training.txt
Last active October 6, 2021 08:02
Vim Kata Daily Training
# Vim Daily Training
## Sorting (Command Line Util)
Sort the below sentances into alphabetical order:
```
Leslie Burch
@junderhill
junderhill / fish_prompt.fish
Created July 4, 2019 09:54 — forked from joshuacrass/fish_prompt.fish
Customized fish prompt for a better Git experience
# Options
set __fish_git_prompt_show_informative_status
set __fish_git_prompt_showcolorhints
set __fish_git_prompt_showupstream "informative"
# Colors
set green (set_color green)
set magenta (set_color magenta)
set normal (set_color normal)
set red (set_color red)
function authentication(){
return "test";
}
export default authentication
@junderhill
junderhill / GitSlides.md
Last active July 22, 2016 08:46
Remark Git Slides

class: middle, center

Git


Distributed

???

# Python tutorial @ BIG (EPFL)
## A short introduction to Python for Image Analysis and Deep Learning
*Lilian Besson*<br />
BIG, EPFL, July 2016
.affiliations[
![ENS Cachan](logos/enscachan.png)
![EPFL](logos/epfl.png)
]
@junderhill
junderhill / intercept.sql
Created July 9, 2016 21:32
EF Intercept Generated SQL
SELECT
[Project2].[AccessFailedCount] AS [AccessFailedCount],
[Project2].[Id] AS [Id],
[Project2].[IsRequestor] AS [IsRequestor],
[Project2].[IsApprover] AS [IsApprover],
[Project2].[IsAdministrator] AS [IsAdministrator],
[Project2].[IsSuperUser] AS [IsSuperUser],
[Project2].[SiteId] AS [SiteId],
[Project2].[FirstName] AS [FirstName],
[Project2].[LastName] AS [LastName],
@junderhill
junderhill / activity.controller.js
Created April 20, 2015 08:59
Activity controller injection
angular.module('dailysummary')
.controller('activityController', activityController);
activityController.$inject = ['roleService', 'activityService', '$scope'];
function activityController(roleService, activityService, $scope) {
var vm = this;
vm.selectedDate = new Date();
var currentRole = roleService.getCurrentRole();
@junderhill
junderhill / aaa.snippet
Created October 17, 2014 13:18
AAA Code Snipper
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets
xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>MsTest AAA</Title>
<Author>Jason Underhill</Author>
<Description>Adds a unit test stub method for MsTest</Description>
<Shortcut>aaa</Shortcut>
</Header>
@junderhill
junderhill / sms_spec.rb
Created October 7, 2014 12:03
Mocking sms lib
describe SMS do
let(:mockClockworkApi){ double{"ClockworkApi"} }
subject { SMS.new(:mockClockworkApi) }
context ".build" do
it "should call messages.build" do
:mockClockworkApi.should_receive(???).once
end
end
end