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
| <?php | |
| $sf_config = array( | |
| client_id => '', // from salesforce OAuth configuration (add new app ...) | |
| client_secret => '', | |
| username => '', // username login to salesforce | |
| password => '', // no need to concat password token | |
| url => 'https://login.salesforce.com/services/oauth2/token', | |
| grant_type => 'password', | |
| query_srv_url => '/services/data/v20.0/query/' |
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
| <apex:page standardController="Account" showHeader="false" sidebar="false" standardStylesheets="false"> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/jsforce/1.7.0/jsforce.min.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/vue/1.0.26/vue.js"></script> | |
| <h1>Using jsforce and Vue Js</h1> | |
| <div id="app"> | |
| <label> | |
| Filter by name: | |
| <input v-model="name" /> |
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
| #Sample provided As-Is – Use after sufficient testing. | |
| #replace these details – User name, domain, Password. (Also consider using Get-Credential to enter password securely as script runs) | |
| #Ensure there is a folder called C:\OUTPUT | |
| #from https://blogs.technet.microsoft.com/sharepointrecipes/2015/06/17/code-sample-spo-dump-out-list-items-to-csv/ | |
| $username = "admin@domain.onmicrosoft.com" | |
| $password = "pwd" | |
| $url = "https://domain.sharepoint.com" |
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
| ** Site Content and Structure ** | |
| javascript:(function(){window.open(_spPageContextInfo.webAbsoluteUrl +'/_layouts/15/sitemanager.aspx','_blank');})(); | |
| ** Site Settings ** | |
| javascript:(function(){window.open(_spPageContextInfo.webAbsoluteUrl + '/_layouts/settings.aspx','_blank');})(); | |
| ** Site contents ** | |
| javascript:(function(){window.open(_spPageContextInfo.webAbsoluteUrl +'/_layouts/15/viewlsts.aspx','_blank');})(); |
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
| <script src='https://code.jquery.com/jquery-1.11.1.min.js'></script> | |
| <script> | |
| function getjs(){ | |
| $.getJSON("hashtag.json", function(data) { | |
| console.log(data.total); // this will show the info it in firebug console | |
| }); | |
| } | |
| </script> | |
| <button onclick="getjs()">Test</button> |
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
| alignment top_right | |
| background no | |
| border_width 1 | |
| cpu_avg_samples 2 | |
| default_color cornflowerblue | |
| default_outline_color white | |
| default_shade_color white | |
| draw_borders no |
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
| bookmark({ | |
| "cacheTimeout" : "3600", | |
| "tools": [ | |
| { "vpn": false, "title": "ABC1" , "url": "http://example1.com" }, | |
| { "vpn": false, "title": "ABC2" , "url": "http://example2.com" } | |
| ], | |
| "sites": [ | |
| { "vpn": false, "title": "ABC3" , "url": "http://example3.com" }, | |
| { "vpn": true, "title": "ABC4" , "url": "http://example4.com" } |
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
| <!-- script begin --> | |
| <script type="text/javascript" src="/_layouts/js/jquery-1.3.2.min.js"></script> | |
| <script type="text/javascript" src="/_layouts/js/shadowbox/shadowbox.js"></script> | |
| <link rel="stylesheet" type="text/css" href="/_layouts/js/shadowbox/shadowbox.css"> | |
| <script type="text/javascript"> | |
| Shadowbox.init({ | |
| language: 'en', | |
| players: ['img','swf','flv'] | |
| }); |
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
| ; configuration file | |
| [test] | |
| logging_file = D:/firecast_data/script_logs/firms_log.txt | |
| ;1 = file , 2 = stdout | |
| logging_streaming = 1 | |
| ; ftp information | |
| ftp_host = <ftp host address> |
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
| enable: <%= link_to 'Enable', user_update_state_path(user.id, state_event: 'register', access_state_event: 'enable') %><br> | |
| disable: <%= link_to 'disable', user_update_state_path(user.id, state_event: 'unregister', access_state_event: 'disable') %> |