Here is a list of scopes to use in Sublime Text 2/3 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
| Clear-Host | |
| Write-Host "==========================" -ForegroundColor Cyan | |
| Write-Host " THÔNG TIN PHẦN CỨNG MÁY TÍNH" -ForegroundColor Cyan | |
| Write-Host "==========================" -ForegroundColor Cyan | |
| # ========================== | |
| # CPU | |
| # ========================== | |
| Write-Host "`n==== CPU ====" -ForegroundColor Cyan | |
| Get-CimInstance Win32_Processor | Select-Object ` |
| #Reference: https://stackoverflow.com/questions/38511444/python-download-files-from-google-drive-using-url | |
| import requests | |
| def download_file_from_google_drive(id, destination): | |
| URL = "https://docs.google.com/uc?export=download" | |
| session = requests.Session() | |
| response = session.get(URL, params = { 'id' : id }, stream = True) |
| <?php | |
| /* | |
| Plugin Name: Force SSL URL Scheme | |
| Plugin URI: https://gist.github.com/webaware/4688802 | |
| Description: Force the protocol scheme to be HTTPS when is_ssl() doesn't work | |
| Version: 1.0.0 | |
| Author: WebAware | |
| Author URI: http://webaware.com.au/ | |
| @ref: http://wordpress.org/support/topic/ssl-insecure-needs-35-compatibility |
| function addLink() { | |
| //Get the selected text and append the extra info | |
| var selection = window.getSelection(), | |
| pagelink = '<br /><br /> Nguồn: ' + document.location.href, | |
| copytext = selection + pagelink, | |
| newdiv = document.createElement('div'); | |
| //hide the newly created container | |
| newdiv.style.position = 'absolute'; | |
| newdiv.style.left = '-99999px'; |
| <?php | |
| //url | |
| $redirect = "http://www.eyeofriyadh.com/events/"; | |
| $event = getEvents($redirect); | |
| echo "Dates are : <br>" . $event; |
| // Source: https://gist.github.com/luetkemj/2023628 | |
| // Xem hướng dẫn WP_Query toàn tập: http://goo.gl/kRpzTz | |
| <?php | |
| $args = array( | |
| //////Author Parameters - Tham số lấy bài viết theo tác giả | |
| //http://codex.wordpress.org/Class_Reference/WP_Query#Author_Parameters | |
| 'author' => '1,2,3,', //(int) - Các ID tác giả cần lấy bài viết (thêm dấu - vào để loại trừ tác giả, ví dụ: -14, -20) | |
| 'author_name' => 'luetkemj', //(string) - Lấy bài viết dựa theo tên nick name của tác giả | |
| 'author__in' => array( 2, 6 ), //(array) - Lấy bài dựa theo ID của tác giả |
| ########## | |
| # Tweaked Win10 Initial Setup Script | |
| # Primary Author: Disassembler <[email protected]> | |
| # Modified by: alirobe <[email protected]> based on my personal preferences. | |
| # Version: 2.20.2, 2018-09-14 | |
| # Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
| # Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/ | |
| # Tweak difference: | |
| # | |
| # @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ... |
Here is a list of scopes to use in Sublime Text 2/3 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
| (() => { | |
| /* | |
| * | |
| * @author: MonokaiJs | |
| * @facebook: fb.me/MonokaiJsp | |
| * | |
| */ | |
| const ACCESS_TOKEN = 'EAAAA-put-your-access-token-here'; | |
| let xhr = new XMLHttpRequest; | |
| xhr.open('GET', `https://graph.facebook.com/me/likes?access_token=${ACCESS_TOKEN}`); |
| <?php | |
| /* | |
| Plugin Name: OT Flatsome Ultimate Addons | |
| Plugin URI: https://ninewp.com | |
| Description: OT Flatsome Ultimate Addons | |
| Version: 1.0.0 | |
| Author: thinhbg59 | |
| Text Domain: OT_FL_Ultimate_Addons | |
| Domain Path: /languages |