Skip to content

Instantly share code, notes, and snippets.

View seyDoggy's full-sized avatar

Adam Merrifield seyDoggy

View GitHub Profile
@seyDoggy
seyDoggy / UsersData.java
Created April 7, 2017 13:28
Cloud Foundry: Consuming arrays with cloud config
@ConfigurationProperties(prefix = "users.service")
@Configuration
@Component
public class UsersData {
private String[] benefitType;
private String[] status;
// setters/getters…
@seyDoggy
seyDoggy / jetbrains-studio.desktop
Created February 24, 2017 13:08
Contents of Android Studio .desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Icon=/usr/local/share/android-studio/bin/studio.png
Exec="/usr/local/share/android-studio/bin/studio.sh" %f
Comment=Develop with pleasure!
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-studio
@seyDoggy
seyDoggy / restful.module.js
Last active September 4, 2016 05:29
An AngularJS RESTful Constructor
/**
* @ngdoc module
* @name Restful
* @description
*
* Restful is a base class from which to extend and create more CRUD services
* without the need to repeat the same CRUD operations and implementation
* with each additional service.
*
* The Restful factory takes one argument, a configuration object.
@seyDoggy
seyDoggy / .profile
Last active August 31, 2016 12:03
to change shell on LDAP system
export SHELL=`which zsh`
# Works on Ubuntu
#[ -z "$ZSH_VERSION" ] && exec "$SHELL" -l
# Works on Fedora
#/usr/bin/szh
@seyDoggy
seyDoggy / gist:5d0286fa3cd4f5e214ff
Created February 3, 2016 14:40
neocomplete settings
" Use neocomplete.
let g:neocomplete#enable_at_startup = 1
" Neocomplete Plugin key-mappings.
inoremap <expr><C-g> neocomplete#undo_completion()
inoremap <expr><C-l> neocomplete#complete_common_string()
" Neosnippet Recommended key-mappings.
" <CR>: close popup and save indent.
inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
@seyDoggy
seyDoggy / touchegg.conf
Created November 26, 2015 01:37
My working touchegg config for Elementary OS Freya
<touchégg>
<settings>
<property name="composed_gestures_time">111</property>
</settings>
<application name="All">
<gesture type="DRAG" fingers="4" direction="DOWN">
<action type="SEND_KEYS">Super+a</action>
</gesture>
<gesture type="DRAG" fingers="4" direction="UP">
<action type="SEND_KEYS">Super+s</action>
@seyDoggy
seyDoggy / git-release-notes.sh
Last active November 3, 2015 14:53
Use git log to grab a quick summary of what's changed between versions.
git log --pretty=format:"- %s%n%n %b" --no-merges v3.0.5.1..v3.1.0

Keybase proof

I hereby claim:

  • I am seyDoggy on github.
  • I am seydoggy (https://keybase.io/seydoggy) on keybase.
  • I have a public key whose fingerprint is 9E1D 2DEB 564D CFA0 E077 36AF 85E5 BC97 30D9 884B

To claim this, I am signing this object:

@seyDoggy
seyDoggy / basic.html
Created March 26, 2015 14:03
Zurb Ink basic email template
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
/**********************************************
* Ink v1.0.5 - Copyright 2013 ZURB Inc *
**********************************************/
@seyDoggy
seyDoggy / caller.js
Last active August 29, 2015 14:16 — forked from raygig/gist:2aa37249bd33f916321a
Ray's work on iframe popup resizing.
try {
parent.FF.popup.resize(document);
} catch(e) {}