Skip to content

Instantly share code, notes, and snippets.

View ayushghosh's full-sized avatar
🎯
Focusing

Ayush Ghosh ayushghosh

🎯
Focusing
View GitHub Profile
@ayushghosh
ayushghosh / sync.sh
Created October 14, 2014 13:07
Automate Sync
#!/bin/bash
clear
echo "Syncing Api Server from GIT"
printf "\n\n---------------------------"
printf "\n\nSitching to user forge"
sudo su forge
printf "\n\nCurrent User: "
whoami
$scope.addFieldset = function(fieldset){
// alert('afs');
// console.log($scope.schema.sections[0].fieldset);
var count=0;
var sco_sch= {};
angular.forEach($scope.schema.fields, function(value, key) {
if(value.fieldIsUserInput){
sco_sch[value.fieldId]=value.fieldDefault;