Skip to content

Instantly share code, notes, and snippets.

View darrylhebbes's full-sized avatar

Darryl Hebbes darrylhebbes

  • Berlin, Germany
View GitHub Profile
@darrylhebbes
darrylhebbes / doom.md
Created November 27, 2020 22:55 — forked from anhedonix/doom.md
Doom Emacs Cheatsheet

Doom Emacs Default keybindings cheetsheet

SPC

  • SPC find file
  • , switch bufferA
  • . browse files
  • : MX
  • ; EX
  • < switch buffer
@darrylhebbes
darrylhebbes / doom.txt
Created November 27, 2020 22:54 — forked from hjertnes/doom.txt
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@darrylhebbes
darrylhebbes / combinators.js
Created June 27, 2018 07:42 — forked from Avaq/combinators.js
Common combinators in JavaScript
const I = x => x;
const K = x => y => x;
const A = f => x => f(x);
const T = x => f => f(x);
const W = f => x => f(x)(x);
const C = f => y => x => f(x)(y);
const B = f => g => x => f(g(x));
const S = f => g => x => f(x)(g(x));
const P = f => g => x => y => f(g(x))(g(y));
const Y = f => (g => g(g))(g => f(x => g(g)(x)));
const { withStateHandlers } = Recompose;
const Counter = ({ count, increment, decrement }) =>
<div>
Count: {count}
<div>
<button onClick={increment}>+</button>
<button onClick={decrement}>-</button>
</div>
</div>;
@darrylhebbes
darrylhebbes / hydra.el
Last active December 19, 2022 15:26 — forked from joedicastro/hydra.el
#Emacs Hydras for buffers and window manipulation
(defhydra hydra-buffers (:color blue :hint nil)
"
╭─────────┐
Move to Window Switch Do │ Buffers │
╭────────────────────────────────────────────────────────────────────┴─────────╯
^_k_^ [_b_] switch (ido) [_d_] kill the buffer
^^↑^^ [_i_] ibuffer [_r_] toggle read-only mode
_h_ ← → _l_ [_a_] alternate [_u_] revert buffer changes
^^↓^^ [_s_] switch (helm) [_w_] save buffer
^_j_^
@darrylhebbes
darrylhebbes / Recruiting.md
Created July 2, 2014 14:14 — forked from ProLoser/Recruiting.md
#Post: Dear Recruiter or Hopeful Employer

Dear Recruiter or Hopeful Employer,

I'm going to be frank.

I don't have the time or energy to have a phone chat with every recruiter who contacts me. If you want to know about me, such as if I'm worth pursuing, I can answer any questions you have via email. I will only talk on the phone to employees of the prospective company.

That said, here's the answer to most questions:

  • Are you looking for a new job?
    Not really, unless it meets my specific criteria.
class BaseCtrl
constructor: ->
console.log("All your base are belong to us!")
toJson: (item) ->
JSON.stringify(item)
class TodoCtrl extends BaseCtrl
constructor: (@$scope) ->
super
@darrylhebbes
darrylhebbes / sc-dl-min.js
Created November 15, 2012 16:11 — forked from duncanbeevers/sc-dl-min.js
Bookmarklet that generates download link for a Soundcloud upload
(function(a){function f(a){var b=a.find(".actionbar");return b.length?b:a.prepend('<div class="actionbar"><div class="actions"><div class="primary"></div></div></div>')}function e(a,b){var c=b.find(".actions"),d=c.find(".download");d.length||c.prepend('<a href="'+a.streamUrl+'" class="download pl-button" download="'+a.title+'" title="'+a.title+'">Download track</a>')}function d(a,b){var d=null;b.hasClass("nano")?d=f(b.closest(".track-title").find(".track")).css({marginLeft:"18px"}):b.hasClass("small")&&(d=f(b.find(".container"))),d&&c(a,d)}function c(a,b){var c=b.find(".download, .mock-download");if(!c.length){var d=$('<a class="pl-button mock-download"><span>Download</span></a>').css({backgroundImage:"url(http://soundcloud.com/images/icons_mini.png?unicorn26)",backgroundRepeat:"no-repeat",backgroundPosition:"-77px -236px",paddingLeft:"18px"}).attr("download",a.title+".mp3");b.find(".primary").append(d),d.attr("href",a.streamUrl)}}function b(a){var b=$.helpers,f=b.getPlayerTrack(b.getPlayerNode(a)),g=a.find("
@darrylhebbes
darrylhebbes / gist:2265140
Last active December 13, 2017 21:26 — forked from telepenin/hack.sh
OSX For Hackers
We couldn’t find that file to show.