Skip to content

Instantly share code, notes, and snippets.

View IAMIronmanSam's full-sized avatar
🎯
Focusing

Tony Stark IAMIronmanSam

🎯
Focusing
View GitHub Profile
using (ClientContext clientContext = new ClientContext("https://yoursite.sharepoint.com/"))
{
SecureString passWord = new SecureString();
foreach (char c in "yourpassword".ToCharArray()) passWord.AppendChar(c);
clientContext.Credentials = new SharePointOnlineCredentials("loginname@yoursite.onmicrosoft.com", passWord);
Web web = clientContext.Web;
# Traversing arrays and objects in CoffeeScript
# The array and object we use for testing
arr = [1, 2, 3, 4, 5]
obj = {a: 1, b: 2, c: 3, d: 4, e: 5}
# 'in' has a different meaning in CoffeeScript than in JavaScript
# CS: element in array -> JS: array.indexOf(element) >= 0
console.log '5 in arr: ' + (5 in arr)
@IAMIronmanSam
IAMIronmanSam / Markup.html
Last active December 12, 2015 03:09 — forked from lukecanvin/Adapted-Boostrap.css
Updating CSS Reference & HTML
<head>
<link rel="stylesheet" type="text/css" href="Adapted-Boostrap.css">
<link rel="stylesheet" type="text/css" href="Additional-style.css">
<link rel="stylesheet" type="text/css" href="Responsive-fluid-grid.css">
</head>
<body>
<div class="topbar">
<div class="topbar-inner">
<div class="container">