Skip to content

Instantly share code, notes, and snippets.

/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
var request = require('request'),
jsdom = require('jsdom'),
jar = request.jar(), // stores cookies in the "jar", we can re-use them in future authenticated requests
// A closure function to enclose our code within
(function(username, password){
request.post({
url : 'https://testing.feedhenry.me/box/srv/1.1/act/sys/auth/login',
jar : jar,
form : {
@andrewconnell
andrewconnell / office-ui-fabric-dropdown.html
Last active March 2, 2021 12:21
Office UI Fabric - Sample Dropdown List
<link rel="stylesheet" href="/public/fabric/css/fabric.min.css">
<link rel="stylesheet" href="/public/fabric/css/fabric.components.min.css">
<script src="/public/fabric/components/Dropdown/Jquery.Dropdown.js" type="application/javascript"></script>
<label class="ms-Label">Position</label>
<div class="ms-Dropdown">
<i class="ms-Dropdown-caretDown ms-Icon ms-Icon--caretDown"></i>
<select class="ms-Dropdown-select" data-ng-model="vm.pick.position">
<option value="">Choose a position...</option>
<option value="QB">quarterback</option>
@BasantPandey
BasantPandey / BaseCmdlets.ps1
Last active January 25, 2021 09:18
Simple How to use the Get-PnPContext and other commands
#Please make sure you have installed all the powershell package.
Import-Module 'C:\Users\basantp\Documents\PNP Blog Section\Code\SharePointPnPPowerShell2013\SharePointPnP.PowerShell.2013.Commands.dll';
try {
Set-PnPTraceLog -On -LogFile 'C:\Users\basantp\Documents\PNP Blog Section\Code\traceoutput.txt' -Level Error -Delimiter ","
$Url1 = "https://sharepoint-xxx.com/xx/xxx"
Connect-PnPOnline -Url $Url1 -CurrentCredentials -ErrorAction Stop
Write-host "Site connected".
$Context= Get-PnPContext # Connect and store the context
$Web = $Context.Site.RootWeb