Skip to content

Instantly share code, notes, and snippets.

View nmsdvid's full-sized avatar
🏠
Working from home

David Nemes nmsdvid

🏠
Working from home
View GitHub Profile
@nmsdvid
nmsdvid / readme.md
Last active April 25, 2020 11:18
Zeit.co / vercel.com now dns

Examples of adding different DNS reccord to a domain.

CNAME: now dns add <domain> <name> CNAME <value>
MX: now dns add <domain> @ MX <mailin domain> 10
TXT: now dns add TXT "" // NOTE, long value should be in quotes

@nmsdvid
nmsdvid / gist:26737c57d8d353689509ceaaf205e63b
Last active August 29, 2019 06:37
SASS breakpoint mixin
// https://rimdev.io/making-media-query-mixins-with-sass/
// example
.class {
@include breakpoint(1200px, max) {
display: block;
}
}
.class {
ssh-add -K /Users/+USERNAME+/.ssh/id_rsa
fieldGroups:
ceed216a-8389-4633-a3c9-870fb53ec7e8:
name: Common
fields:
7dcf0449-051c-48a8-b5b6-f10cca836390:
contentColumnType: string
fieldGroup: ceed216a-8389-4633-a3c9-870fb53ec7e8
handle: bgImage
instructions: ''
name: Image
@nmsdvid
nmsdvid / project.yaml
Created November 12, 2018 20:40
config yaml example
fieldGroups:
421a8e27-9643-4e47-b271-bc9a5f8a144e:
name: Common
bc4e627b-58ca-4fba-9b05-9d07f1af5814:
name: Navigation
fields:
19a964fb-9488-41f0-b654-a213330d500f:
contentColumnType: string
context: global
fieldGroup: bc4e627b-58ca-4fba-9b05-9d07f1af5814
@nmsdvid
nmsdvid / .gitignore
Last active October 16, 2018 07:32
a simple .gitignore for parceljs.org
.cache/
dist/
@nmsdvid
nmsdvid / gist:3386404695605c3d2be75110de3f1c59
Last active July 16, 2018 14:35
Completely hide iOS status bar in a NativeScript app.
Add this to info.plist:
<key>UIStatusBarHidden</key>
<true/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
@nmsdvid
nmsdvid / bookmarks.md
Last active July 2, 2018 12:02
My Bookmarks
@nmsdvid
nmsdvid / RFID reader
Last active July 12, 2017 12:53
RFID reader
// - RFID simple -
// This program simply displays the data that is generated by an RFID phidget in a very simple case and outputs it to the console.
// This simple example covers the basics of connecting and using an RFID phidget.
//
// Copyright 2008 Phidgets Inc. All rights reserved.
// This work is licensed under the Creative Commons Attribution 2.5 Canada License.
// view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ca/
#include <stdio.h>
#include <phidget21.h>
<div id="fb-root"></div><script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3"; fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));</script><div class="fb-post" data-href="https://www.facebook.com/Rewe/posts/1083092598379873" data-width="500"><div class="fb-xfbml-parse-ignore"><blockquote cite="https://www.facebook.com/Rewe/posts/1083092598379873:0"><p>Dessert zum Fr&#xfc;hst&#xfc;ck? Warum eigentlich nicht? Unsere &quot;Inspiration der Woche&quot; ist ein s&#xfc;&#xdf;er Rhababer-Quark. Mit so einem...</p>Posted by <a href="https://www.facebook.com/Rewe/">REWE</a> on&nbsp;<a href="https://www.facebook.com/Rewe/posts/1083092598379873:0">Saturday, April 9, 2016</a></blockquote></div></div>