An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| ((document, limit) => { | |
| const data = Array.from(document.querySelectorAll('*')) | |
| .map((el) => ({zIndex: Number(getComputedStyle(el).zIndex), element: el })) | |
| .filter(({ zIndex }) => !isNaN(zIndex)) | |
| .sort((r1, r2) => r2.zIndex - r1.zIndex) | |
| .slice(0, limit); | |
| console.table(data); | |
| })(document, 50); |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| import json | |
| import requests | |
| # Authentication for user filing issue (must have read/write access to | |
| # repository to add issue to) | |
| USERNAME = 'CHANGEME' | |
| PASSWORD = 'CHANGEME' | |
| # The repository to add this issue to | |
| REPO_OWNER = 'CHANGEME' |
| checkout([$class: 'GitSCM', | |
| branches: [[name: '*/master']], | |
| userRemoteConfigs: [[url: 'https://<token>@<bbgithub_git_url>']], | |
| extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'tp-fdm-monitor-bcl']] | |
| ]) |
| # As per this guide -- http://raspberrypi.stackexchange.com/questions/3617/how-to-install-unrar-nonfree#3618 | |
| # Uninstall unrar-free. | |
| sudo apt-get remove unrar-free | |
| # Make sure you have a source repository by editing /etc/apt/sources.list. | |
| cat /etc/apt/sources.list | |
| # Sync the apt database. | |
| sudo apt-get update |
| VS2012+ have these featured built in | |
| msbuild ProjectFile.csproj /p:Configuration=Release ^ | |
| /p:Platform=AnyCPU ^ | |
| /t:WebPublish ^ | |
| /p:WebPublishMethod=FileSystem ^ | |
| /p:DeleteExistingFiles=True ^ | |
| /p:publishUrl=c:\output | |
| Or if you are building the solution file: |
| Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll" | |
| Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" | |
| Function Ensure-Folder() | |
| { | |
| Param( | |
| [Parameter(Mandatory=$True)] | |
| [Microsoft.SharePoint.Client.Web]$Web, |