Skip to content

Instantly share code, notes, and snippets.

@dillongreen
dillongreen / scratch
Created January 10, 2015 19:46
my ~/.gitconfig
[user]
name = Markus Gattol
email = markus.gattol@sunoano.org
signingkey = Markus
[core]
excludesfile = /home/sa/.gitignore
[color]
ui = true
[alias]
# status
@dillongreen
dillongreen / get_form_values.js
Last active January 2, 2016 15:48
rather than jusing jQuery etc. one can use a template instance method such as find http://docs.meteor.com/#template_find
Template.application_security.events({
"click #requirementAdd": function (evt, templ) {
var requirement = templ.find("#requirementText").value;
var motivation = templ.find("#motivationText").value;
var example = templ.find("#exampleText").value;
var technology = templ.find("#technologyText").value;
Requirements.insert({
requirement: requirement,
@dillongreen
dillongreen / app_with_fonts_from_cdn.html
Last active January 2, 2016 05:29
usind a CDN to include fonts
<head>
<title>Some Title</title>
<link href='https://fonts.googleapis.com/css?family=Ubuntu:400,300,300italic,400italic,700,700italic|Ubuntu+Mono' rel='stylesheet' type='text/css'/>
<link href="//vjs.zencdn.net/4.3/video-js.css" rel="stylesheet">
<script src="//vjs.zencdn.net/4.3/video.js"></script>
<meta name="viewport" content="initial-scale=1">
</head>
@dillongreen
dillongreen / inf-apps.html
Last active January 2, 2016 04:19
using status/connection template helper from https://gist.github.com/8249758; note that the bootstrap-3 package is used here
<li id="nav-connection-status-li">
<span class="label {{connection_status.label}}">{{connection_status.connection_status}}</span> <span class="badge">{{connection_status.retryCount}}</span>
</li>
@dillongreen
dillongreen / inf-apps.js
Last active January 2, 2016 04:19
meteor template helper for client connection status template seen at https://gist.github.com/8249761
Template.navbar.connection_status = function () {
var connection_status = Meteor.status().status;
var retryCount = Meteor.status().retryCount;
switch(connection_status){
case "connected":
return { label: "label-success",
connection_status: connection_status};
case "waiting":
@dillongreen
dillongreen / gist:7542392
Created November 19, 2013 09:01
chrome window resize DEFAUL settings
{"presets":[{"title":"HVGA (old iPhones, small Androids)","width":320,"height":480,"type":"featurephone","target":"viewport"},{"title":"WVGA - Low-end Windows Phone","width":480,"height":800,"type":"smartphone","target":"viewport"},{"title":"DVGA - iPhone","width":640,"height":960,"type":"smartphone","target":"viewport"},{"title":"WXGA - High-end Windows Phone","width":768,"height":1280,"type":"smartphone","target":"viewport"},{"title":"XGA - iPad","width":1024,"height":768,"type":"tablet","target":"viewport"},{"title":"WXGA - Tablet","width":1366,"height":768,"type":"tablet","target":"viewport"},{"title":"WXGA - Netbook","width":1280,"height":800,"type":"laptop","target":"window"},{"title":"WXGA - Ultrabook","width":1366,"height":768,"type":"laptop","target":"window"},{"title":"SXGA - Small desktop","width":1280,"height":1024,"type":"desktop","target":"window"},{"title":"WSXGA+ - Large desktop","width":1680,"height":1050,"type":"desktop","target":"window"}],"settings":{"popupWidth":"250","tooltipDelay":"2000
@dillongreen
dillongreen / bar.html
Created November 18, 2013 22:20
{{loginButtons align="right"}} not working
I see the same result for {{loginButtons align="right"}} and {{loginButtons}} on a completely fresh project. What am I missing?
cat .meteor/packages gives:
# Meteor Packages Used By This Project, One Per Line.
#
# 'Meteor Add' And 'Meteor Remove' Will Edit This File For You,
# But You Can Also Edit It By Hand.
Standard-App-Packages
@dillongreen
dillongreen / *scratch*.el
Created November 18, 2013 17:57
chrome window resize config for import on another device
{"presets":[{"title":"col-sx","width":"480","height":"500","type":"desktop","target":"viewport","X":"","Y":"","pos":"0"},{"title":"col-sm","width":"768","height":"1500","type":"desktop","target":"viewport","X":"","Y":"","pos":"0","ID":1},{"title":"col-md","width":"992","height":"1500","type":"desktop","target":"viewport","X":"","Y":"","pos":"0","ID":2},{"title":"col-lg","width":"1200","height":"1500","type":"desktop","target":"viewport","X":"","Y":"","pos":"0","ID":3}],"settings":{"iconBehavior":"0","popupDescription":"0","popupWidth":"250","tooltip":"0","tooltipDelay":"4000"}}
@dillongreen
dillongreen / .emacs.el
Created November 17, 2013 16:02
setting the fringe in GNU Emacs; lines 23 and 63
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t nil)))
'(buffer-menu-delete-mark ((t (:background "Red" :foreground "white" :weight bold))))
'(buffer-menu-modified-mark ((t (:foreground "red" :weight bold))))
'(buffer-menu-read-only-mark ((t (:foreground "black"))))
'(buffer-menu-save-mark ((t (:background "green" :foreground "white" :weight bold))))