This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Tweak bootstrap by directly editing the bootstrap files hosted on github | |
//Declare your variables | |
var gulp = require('gulp'), | |
estream = require('event-stream'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
connect = require('gulp-connect'), | |
less = require('gulp-less'), | |
htmlMin = require('gulp-htmlmin'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Brand SharePoint by not editing | |
the masterpage. | |
Meant to Brand a SharePoint 2013 | |
Blog site template. | |
*/ | |
$(document).ready(function () { | |
var target = $(this); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Created on : Jan 12, 2017, 9:30:13 AM | |
Author : DAVID MUTUA | |
*/ | |
/** Transparent Bg **/ | |
#SearchBox .ms-srch-sb-border{ | |
background: rgba(0, 51, 127, 0.3); | |
margin-top: 3%; | |
border: none; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NB: The SiteCollection is Created automatically. If you try to make the collection first | |
an Exception will be thrown; "The Site Collection Already Exists". | |
NB: You don't need the -HostHeaderWebApplication parameter if the site being restored, share | |
the same name as the web application. | |
### Backup | |
Backup-SPSite http://s-hqs-spdev/sites/branding/ -Path C:\COLLECTIONS\Branding.bak –UseSqlSnapshot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Demonstarting function callbacks | |
*/ | |
function foo(Goon) { | |
console.warn("Hello from: "+Goon); | |
} | |
function galon(company){ | |
console.log("Greatings from: "+company); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
uglify = require('gulp-uglify'), | |
concat = require('gulp-concat'), | |
gulpif = require('gulp-if'), | |
gutil = require('gulp-util'), | |
browserify = require('gulp-browserify'), | |
compass = require('gulp-compass'), | |
htmlmin = require('gulp-htmlmin'), | |
cssmin = require('gulp-minify-css'), | |
connect = require('gulp-connect'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add data into a list using CSOM | |
function apbObjectivesSection() { | |
alert("We are in the first function"); | |
var currentCrx = SP.ClientContext.get_current(); | |
var web = currentCrx.get_web(); | |
try { | |
var list = web.get_lists().getByTitle("MyObjectives"); | |
var itemInfoObj = new SP.ListItemCreationInformation(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// How to Create a React Sub Component | |
a. Create File | |
b. Import React Library | |
c. Use createClass() to Define the Component | |
d. Export Component | |
var React = require('react'), |
OlderNewer