Skip to content

Instantly share code, notes, and snippets.

🎯
Office 365 CLI

Velin Georgiev VelinGeorgiev

View GitHub Profile
@VelinGeorgiev
VelinGeorgiev / create-projects.sh
Created Mar 5, 2019 — forked from waldekmastykarz/create-projects.sh
Bash script to create a set of SharePoint Framework projects
View create-projects.sh
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
#set -o xtrace
version=$1
cmd_base='yo @microsoft/sharepoint --solutionName spfx --component-name HelloWorld --component-description HelloWorld --skip-install'
cmd_v1_1="$cmd_base --no-skip-feature-deployment"
View spfx-vscode-launch.json
// Use Chrome browser to debug SharePoint Framework React webpart with Visual Studio Code on Windows
// - Install "Debugger for Chrome" extension
// - Add this configuration to the launch.json
// - Close all Chrome browser active instances
// - Start the SPFx nodejs server by executing "gulp serve"
// - Go to VS Code debug view (top menu -> View -> Debug)
// - Hit the play (start debugging) button
// Happy debugging!
// Full guides
// http://blog.velingeorgiev.pro/how-debug-sharepoint-framework-webpart-visual-studio-code
@VelinGeorgiev
VelinGeorgiev / gist:48abb24cb5f471892ae7
Created Dec 11, 2015
Golang-MongoDB30-connection-exampl
View gist:48abb24cb5f471892ae7
package main
import (
"fmt"
"time"
"gopkg.in/mgo.v2"
)
//const MongoDb details
@VelinGeorgiev
VelinGeorgiev / dbService.js
Last active Dec 11, 2015
angular-indexedDB service
View dbService.js
angular.module('app').factory('dbService', [
'$q', function($q) {
return {
init: function() {
var deferred = $q.defer();
var request = indexedDB.open("db");
request.onupgradeneeded = function() {
// The database did not previously exist, so create object stores and indexes.
You can’t perform that action at this time.