ID:
Purpose:
Prerequisite:
Steps:
Expected Result
;; Gist-ed from in https://github.com/arnab/emacs-starter-kit | |
(defun set-dynamic-frame-face (frame) | |
(interactive) | |
(if window-system | |
(progn | |
(if (> (window-width) 2000) | |
(set-frame-parameter frame 'font "Hack 10") ;; Cinema Display | |
(set-frame-parameter frame 'font "Hack 12"))))) |
/** | |
* Marlin 3D Printer Firmware | |
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] | |
* | |
* Based on Sprinter and grbl. | |
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm | |
* | |
* 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 of the License, or |
ID:
Purpose:
Prerequisite:
Steps:
Expected Result
<p><strong>What information do we collect?</strong></p> | |
<p>We collect information from you when you subscribe to our newsletter or fill out a form.</p> | |
<p>When ordering or registering on our site, as appropriate, you may be asked to enter your: name, e-mail address or phone number. You may, however, visit our site anonymously.</p> | |
<p>Google, as a third party vendor, uses cookies to serve ads on your site. Google’s use of the DART cookie enables it to serve ads to your users based on their visit to your sites and other sites on the Internet. Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy.</p> | |
<p><strong>What do we use your information for?</strong></p> | |
<p>Any of the information we collect from you may be used in one of the following ways:</p> | |
<p><em>• To contact you following the form you filled out.</em><br> | |
Your information, whether public or private, will not be sold, exchanged, transferred, or given to any other company for any reason whatsoever |
/* Put in viewDidLoad() */ | |
let tapRecognizer = UITapGestureRecognizer(target: self, action: "handleSingleTap:") | |
tapRecognizer.numberOfTapsRequired = 1 | |
self.view.addGestureRecognizer(tapRecognizer) | |
func handleSingleTap(recognizer: UITapGestureRecognizer) { | |
self.view.endEditing(true) | |
} |
extension String { | |
func toDouble() -> Double? { | |
var chars: [Character] = Array(self) | |
if (chars.filter {$0 == "."}.count > 1) { | |
return nil | |
} | |
var dotIndex: Int? = find(chars, ".") |
;; Package Manager | |
(require 'package) | |
(package-initialize) | |
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) | |
;; auto-complete | |
(require 'auto-complete) | |
(global-auto-complete-mode t) |