Skip to content

Instantly share code, notes, and snippets.

View jordonbiondo's full-sized avatar
🤖
bzzzzzt

Jordon Biondo jordonbiondo

🤖
bzzzzzt
View GitHub Profile
@jordonbiondo
jordonbiondo / email.cs
Created September 27, 2012 16:26
emails
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LumiSoft.Net.IMAP.Client;
using LumiSoft.Net.IMAP;
using LumiSoft.Net;
using LumiSoft.Net.Mail;
using LumiSoft.Net.MIME;
using D.Net.EmailInterfaces;
using System.Threading;
#include <stdio.h>
#include <string.h>
#define aSize 1001
// 8 bit data type
typedef char byte;
int thousandDigitFib();
int addTo(byte* , byte*, int, int);
@jordonbiondo
jordonbiondo / jorbi.el
Last active December 18, 2015 08:00
yell
(defun yell/message(message &optional foreground background time)
"Yell MESSAGE at the user.
Deletes all windows and displays MESSAGE in large text in the entire frame. After TIME
seconds, the window configuration is returned to its previous state.
If FOREGROUND is non-nil it specifies the foreground color of the message, default is red
If BACKGROUND is non-nil it specifies the background color of the message."
(lexical-let
((old-config (current-window-configuration))
(old-bg (face-background 'default))
(foreground (if foreground foreground "red"))
@jordonbiondo
jordonbiondo / jorbi.el
Last active December 19, 2015 14:28
call tracer
;;---------------------------------------------------------------------------
;; Tracker Demo
;;---------------------------------------------------------------------------
(defun add4(x)
"Returns X + 4."
(tkr/todo "make sure this adds the right value") ;put a todo call in the function...
(+ x 3))
(add4 3) ;then, whenever add4 is called...
@jordonbiondo
jordonbiondo / tl.el
Last active December 19, 2015 14:29
Temp-latte-mode
;;---------------------------------------------------------------------------
;; Temp-Lattes:
;; abbrev-mode replacement
;;---------------------------------------------------------------------------
;;---------------------------------------------------------------------------
;; Recipe Examples
;;---------------------------------------------------------------------------
(tl/define-recipe "lm" emacs-lisp-mode
(backward-delete-char (length tl/key))
@jordonbiondo
jordonbiondo / scope.el
Last active December 19, 2015 18:49
let vs cl-flet scope
(defvar foo 2)
(defun return-foo()
foo)
(defun just-call-return-foo()
(return-foo))
(defadvice return-foo (around change-it activate)
"This let block redefines foo in the expansion of ad-do-it"
(defun prince (object &optional printcharfun)
(princ (format "HERE YE HERE YE! %s" object) printcharfun))
@jordonbiondo
jordonbiondo / mods.el
Created July 23, 2013 19:20
turn off modification warnings
(defadvice ask-user-about-supersession-threat (around turn-it-off activate)
t)
(defadvice verify-visited-file-modtime (after turn-it-off activate)
(setq ad-return-value t))
@jordonbiondo
jordonbiondo / modtime-skip-mode.el
Created July 23, 2013 19:36
modtime-skip-mode
;; Author: Jordon Biondo
;; Created: Tue Jul 23 15:35:07 2013 (-0400)
;; Version: .1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation; either version 3, or
;; (at your option) any later version.
;;
;; given the text "abc foo bar baz" I want abc to use the keyword face and following words to use the type face
;; currently abc will be colored correctly but only baz would use the type face
(font-lock-add-keywords 'mode
'(("\\(abc\\)\\( +[a-z]+\\)+"
(1 'font-lock-keyword-face)
(2 'font-lock-type-face))))