Skip to content

Instantly share code, notes, and snippets.

View synic's full-sized avatar

Adam Olsen synic

  • Giddy
  • Salt Lake City, Utah
View GitHub Profile
@synic
synic / pr-comment-emojis.md
Created January 19, 2021 18:54 — forked from raorao/pr-comment-emojis.md
PR Comment Emojis

Any top-level comment on pull request ought be tagged with one of four emojis:

  • for a non-blocking comment that asks for clarification. The pull request author must answer the question before the pull request is merged, but does not have to wait for the comment author to re-review before merging.

  • 🎨 for a non-blocking comment that proposes a refactor or cleanup. The pull request author does not have to address the comment for the pull request to merge.

  • ⚠️ for a blocking comment that must be addressed before the pull request can merge. The comment's author should leave a Request Changes review, and is responsible for re-reviewing once the pull request author has addressed the issue.

  • 😻 for a comment that compliments the author for their work.

@synic
synic / airwatchlookup.txt
Created June 1, 2018 19:20
AirWatch lookup variables in AppConfig
{Date} Today's Date
{ApplicationName} Friendly name of application
{ApplicationDescription} Application's description
{ApplicationComments} Comments associated with the application
{ApplicationImage} Image of the application's icon
{AppCatalogPageReferenceURL} Link to the AirWatch App Catalog page referencing the application
{EnrollmentSupportEmail} Contact email address for support
{EnrollmentSupportPhone} Contact phone number for support
{FirstName} User's first name
{LastName} User's last name
(defun save-framegeometry ()
"Gets the current frame's geometry and saves to ~/.emacs.d/framegeometry."
(let (
(framegeometry-left (frame-parameter (selected-frame) 'left))
(framegeometry-top (frame-parameter (selected-frame) 'top))
(framegeometry-width (frame-parameter (selected-frame) 'width))
(framegeometry-height (frame-parameter (selected-frame) 'height))
(framegeometry-file (expand-file-name "~/.emacs.d/framegeometry"))
)
@synic
synic / emacs.md
Created October 15, 2015 00:12
Fixing dired in spacemacs

First, add dired+ to dotspacemacs-additional-packages, then...

Before user-config in .spacemacs:

(defvar ao/v-dired-omit t
  "If dired-omit-mode enabled by default. Don't setq me.")

(defun ao/dired-omit-switch ()
 "This function is a small enhancement for `dired-omit-mode', which will
#include "stm32f0xx.h"
#include <stdio.h>
/*
* STM32F0 led blink sample (retargetted to semihosting).
*
* In debug configurations, demonstrate how to print a greeting message
* on the standard output. In release configurations the message is
* simply discarded. By default the trace messages are forwarded to
* semihosting output, but can be completely suppressed by changing
@synic
synic / .spacemacs.el
Created September 21, 2015 22:54
python fill-column
; python hooks
(add-hook 'python-mode-hook (lambda ()
(fci-mode 1)
(auto-fill-mode)
(setq fill-column 79)
))
def test_stuff():
reservation = factory.ReservationFactory.create()
db.session.commit()
#... run PUT request
# refresh the reservation so we can test that the PUT did it's thing
db.session.refresh(reservation)
@synic
synic / ejuice.py
Created November 26, 2013 22:14 — forked from sli/ejuice.py
class Recipe(object):
def __init__(self, recipe):
self.__data = {
'nicotine_base':0,
'nicotine_target':0,
'amount':0,
'cut':0,
'target_pg':0,
'target_vg':0,
'unknown_a':0,
@synic
synic / gist:e58488851d59ca084c82
Created October 14, 2015 19:36 — forked from aussielunix/gist:1515957
search all graylog2-elasticsearch
curl -XGET 'http://localhost:9200/graylog2/_search?pretty=true' -d '
{
"query" : {
"matchAll" : {}
}
}'