Skip to content

Instantly share code, notes, and snippets.

@amirhp-com
Last active January 25, 2021 20:46
Show Gist options
  • Save amirhp-com/fec8acc3527178d9e77ee3f9e1373eea to your computer and use it in GitHub Desktop.
Save amirhp-com/fec8acc3527178d9e77ee3f9e1373eea to your computer and use it in GitHub Desktop.
ATOM IDE automatic update by http://atom.io/packages/sync-settings
1500e4bf053970bf17d119a9f96f4a68399a2e7c
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
# console.log "Saved! #{editor.getPath()}"
atom.commands.add 'atom-text-editor:not([mini])', 'line-numbers:toggle', ->
lineNumbersShowing = atom.config.get('editor.showLineNumbers')
if lineNumbersShowing
atom.config.set('editor.showLineNumbers', false)
else if not lineNumbersShowing
atom.config.set('editor.showLineNumbers', true)
# Your keymap
#
# Atom keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts. Unlike style sheets however,
# each selector can only be declared once.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an example taken from Atom's built-in keymap:
#
# 'atom-text-editor':
# 'enter': 'editor:newline'
#
# 'atom-workspace':
# 'ctrl-shift-p': 'core:move-up'
# 'ctrl-p': 'core:move-down'
#
# You can find more information about keymaps in these guides:
# * http://flight-manual.atom.io/using-atom/sections/basic-customization/#customizing-keybindings
# * http://flight-manual.atom.io/behind-atom/sections/keymaps-in-depth/
#
# If you're having trouble with your keybindings not working, try the
# Keybinding Resolver: `Cmd+.` on macOS and `Ctrl+.` on other platforms. See the
# Debugging Guide for more information:
# * http://flight-manual.atom.io/hacking-atom/sections/debugging/#check-the-keybindings
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#configuring-with-cson
'atom-text-editor':
'ctrl-u': 'change-case:lower'
'ctrl-shift-u': 'change-case:upper'
'alt-u': 'change-case:title'
'ctrl-alt-u': 'change-case:camel'
'alt-shift-u': 'change-case:snake'
'ctrl-alt-l': 'editor:auto-indent'
'ctrl-e': 'html-entitize:encode'
'ctrl-shift-e': 'html-entitize:decode'
'ctrl-shift-h': 'file-header:add'
'atom-text-editor:not([mini])':
'ctrl-shift-K': 'editor:delete-line'
'.editor':
'f5': 'line-numbers:toggle'
'ctrl-f5': 'minimap:toggle'
'atom-workspace':
'alt-j': 'remove-whitespace:remove'
{
"about": {
"version": "1.9.1"
},
"archive-view": {
"version": "0.65.2"
},
"atom-autocomplete-php": {
"version": "0.25.6"
},
"atom-beautify": {
"version": "0.33.4"
},
"atom-clock": {
"version": "0.1.18"
},
"atom-dark-syntax": {
"version": "0.29.1",
"theme": "syntax"
},
"atom-dark-ui": {
"version": "0.53.3",
"theme": "ui"
},
"atom-html-preview": {
"version": "0.2.6"
},
"atom-light-syntax": {
"version": "0.29.1",
"theme": "syntax"
},
"atom-light-ui": {
"version": "0.46.3",
"theme": "ui"
},
"atom-material-ui": {
"version": "2.1.3",
"theme": "ui"
},
"atom-minify-stand-alone": {
"version": "0.2.0"
},
"atom-which-php-function": {
"version": "0.1.0"
},
"atom-wordpress": {
"version": "0.3.0"
},
"autocomplete": {
"version": "0.47.0"
},
"autocomplete-atom-api": {
"version": "0.10.7"
},
"autocomplete-css": {
"version": "0.17.5"
},
"autocomplete-html": {
"version": "0.8.8"
},
"autocomplete-js-import": {
"version": "1.4.0"
},
"autocomplete-php": {
"version": "0.3.7"
},
"autocomplete-plus": {
"version": "2.42.3"
},
"autocomplete-snippets": {
"version": "1.12.1"
},
"autocomplete-wordpress-hooks": {
"version": "0.2.3"
},
"autoflow": {
"version": "0.29.4"
},
"autoprefixer": {
"version": "4.2.0"
},
"autosave": {
"version": "0.24.6"
},
"background-tips": {
"version": "0.28.0"
},
"base16-tomorrow-dark-theme": {
"version": "1.6.0",
"theme": "syntax"
},
"base16-tomorrow-light-theme": {
"version": "1.6.0",
"theme": "syntax"
},
"block-comment-plus": {
"version": "0.5.1"
},
"bookmarks": {
"version": "0.46.0"
},
"bracket-matcher": {
"version": "0.91.2"
},
"busy-signal": {
"version": "2.0.1"
},
"change-case": {
"version": "0.6.5"
},
"code-stats-atom": {
"version": "2.0.6"
},
"color-picker": {
"version": "2.3.0"
},
"command-palette": {
"version": "0.43.5"
},
"cssbeautify": {
"version": "1.3.0"
},
"dalek": {
"version": "0.2.2"
},
"deprecation-cop": {
"version": "0.56.9"
},
"dev-live-reload": {
"version": "0.48.1"
},
"docblockr": {
"version": "0.13.7"
},
"encoding-selector": {
"version": "0.23.9"
},
"exception-reporting": {
"version": "0.43.1"
},
"figletify": {
"version": "0.2.2"
},
"file-header": {
"version": "1.13.9"
},
"file-icons": {
"version": "2.1.46"
},
"file-path-picker": {
"version": "1.0.0"
},
"find-and-replace": {
"version": "0.219.7"
},
"fuzzy-finder": {
"version": "1.14.3"
},
"git-diff": {
"version": "1.3.9"
},
"github": {
"version": "0.36.2"
},
"go-to-line": {
"version": "0.33.0"
},
"googlesearch": {
"version": "1.5.0"
},
"grammar-selector": {
"version": "0.50.1"
},
"highlight-selected": {
"version": "0.17.0"
},
"html-entitize": {
"version": "1.1.0"
},
"ide-css": {
"version": "0.3.5"
},
"ide-html": {
"version": "0.6.2"
},
"ide-json": {
"version": "0.2.1"
},
"ide-php": {
"version": "0.7.18"
},
"image-preview": {
"version": "0.4.0"
},
"image-view": {
"version": "0.64.0"
},
"incompatible-packages": {
"version": "0.27.3"
},
"intentions": {
"version": "1.1.5"
},
"jQuery": {
"version": "1.3.0"
},
"keybinding-resolver": {
"version": "0.39.0"
},
"language-c": {
"version": "0.60.19"
},
"language-clojure": {
"version": "0.22.8"
},
"language-coffee-script": {
"version": "0.50.0"
},
"language-csharp": {
"version": "1.1.0"
},
"language-css": {
"version": "0.44.4"
},
"language-gfm": {
"version": "0.90.8"
},
"language-git": {
"version": "0.19.1"
},
"language-go": {
"version": "0.47.2"
},
"language-htaccess": {
"version": "0.2.0"
},
"language-html": {
"version": "0.53.1"
},
"language-hyperlink": {
"version": "0.17.1"
},
"language-java": {
"version": "0.32.0"
},
"language-javascript": {
"version": "0.134.1"
},
"language-json": {
"version": "1.0.5"
},
"language-less": {
"version": "0.34.3"
},
"language-make": {
"version": "0.23.0"
},
"language-mustache": {
"version": "0.14.5"
},
"language-objective-c": {
"version": "0.16.0"
},
"language-perl": {
"version": "0.38.1"
},
"language-php": {
"version": "0.44.7"
},
"language-property-list": {
"version": "0.9.1"
},
"language-python": {
"version": "0.53.5"
},
"language-ruby": {
"version": "0.72.23"
},
"language-ruby-on-rails": {
"version": "0.25.3"
},
"language-rust-bundled": {
"version": "0.1.0"
},
"language-sass": {
"version": "0.62.1"
},
"language-shellscript": {
"version": "0.28.2"
},
"language-source": {
"version": "0.9.0"
},
"language-sql": {
"version": "0.25.10"
},
"language-text": {
"version": "0.7.4"
},
"language-todo": {
"version": "0.29.4"
},
"language-toml": {
"version": "0.20.0"
},
"language-typescript": {
"version": "0.6.3"
},
"language-xml": {
"version": "0.35.3"
},
"language-yaml": {
"version": "0.32.0"
},
"line-ending-selector": {
"version": "0.7.7"
},
"link": {
"version": "0.31.6"
},
"linter": {
"version": "3.2.3"
},
"linter-alex": {
"version": "7.0.0"
},
"linter-csslint": {
"version": "2.0.6"
},
"linter-htmlhint": {
"version": "1.6.3"
},
"linter-js-standard": {
"version": "7.0.0"
},
"linter-markdown": {
"version": "5.2.11"
},
"linter-php": {
"version": "1.6.1"
},
"linter-phpcs": {
"version": "1.7.6"
},
"linter-phpmd": {
"version": "2.0.2"
},
"linter-tidy": {
"version": "2.4.0"
},
"linter-ui-default": {
"version": "2.4.1"
},
"local-history": {
"version": "4.3.1"
},
"markdown-preview": {
"version": "0.160.2"
},
"metrics": {
"version": "1.8.1"
},
"minimap": {
"version": "4.39.5"
},
"minimap-linter": {
"version": "2.2.2"
},
"minimap-plus": {
"version": "5.0.0"
},
"notifications": {
"version": "0.71.0"
},
"one-dark-syntax": {
"version": "1.8.4",
"theme": "syntax"
},
"one-dark-ui": {
"version": "1.12.5",
"theme": "ui"
},
"one-light-syntax": {
"version": "1.8.4",
"theme": "syntax"
},
"one-light-ui": {
"version": "1.12.5",
"theme": "ui"
},
"open-on-github": {
"version": "1.3.2"
},
"package-generator": {
"version": "1.3.0"
},
"pdf-view": {
"version": "0.72.0"
},
"php-hover-documentation": {
"version": "0.2.1"
},
"pigments": {
"version": "0.40.6"
},
"remote-ftp": {
"version": "2.2.4"
},
"remove-whitespace": {
"version": "0.2.1"
},
"settings-view": {
"version": "0.261.6"
},
"snippets": {
"version": "1.5.1"
},
"solarized-dark-syntax": {
"version": "1.3.0",
"theme": "syntax"
},
"solarized-light-syntax": {
"version": "1.3.0",
"theme": "syntax"
},
"spell-check": {
"version": "0.76.2"
},
"split-diff": {
"version": "1.6.1"
},
"status-bar": {
"version": "1.8.17"
},
"styleguide": {
"version": "0.49.12"
},
"svg-preview": {
"version": "0.14.0"
},
"symbols-tree-view": {
"version": "0.14.0"
},
"symbols-view": {
"version": "0.118.4"
},
"sync-settings": {
"version": "5.2.2"
},
"tabs": {
"version": "0.110.0"
},
"timecop": {
"version": "0.36.2"
},
"tree-view": {
"version": "0.228.2"
},
"update-package-dependencies": {
"version": "0.13.1"
},
"welcome": {
"version": "0.36.9"
},
"whitespace": {
"version": "0.37.7"
},
"woocommerce": {
"version": "1.0.0"
},
"wordpress-api": {
"version": "1.2.2"
},
"wordpress-autocomplete": {
"version": "1.5.0"
},
"wordpress-dictionary": {
"version": "4.4.0"
},
"wordpress-go-function": {
"version": "0.1.0"
},
"wrap-guide": {
"version": "0.41.0"
}
}
{
"*": {
"atom-autocomplete-php": {
"binComposer": "C:\\ProgramData\\ComposerSetup\\bin\\composer.phar",
"binPhp": "C:\\xampp73\\php\\php.exe",
"insertNewlinesForUseStatements": true
},
"atom-beautify": {
"css": {
"default_beautifier": "Pretty Diff"
},
"executables": {
"php": {
"path": "C:\\xampp\\php\\php.exe"
},
"php-cs-fixer": {
"path": "C:\\xampp\\phpcs.phar"
},
"phpcbf": {
"path": "C:\\xampp\\phpcbf.phar"
}
},
"html": {
"default_beautifier": "Pretty Diff"
},
"js": {},
"php": {
"default_beautifier": "PHPCBF",
"phpcbf_version": 3
}
},
"atom-clock": {
"dateFormat": "HH:mm:ss",
"refreshInterval": 1
},
"atom-html-preview": {
"triggerOnSave": true
},
"atom-ide-ui": {
"atom-ide-diagnostics-ui": {
"autoVisibility": true,
"showDirectoryColumn": true
}
},
"autocomplete-plus": {
"maxVisibleSuggestions": 20,
"minimumWordLength": 5,
"similarSuggestionRemoval": "textOrSnippet"
},
"autoprefixer": {
"runOnSave": true
},
"carbon": {
"exportSize": "4x",
"lineNumbers": true,
"syntaxTheme": "solarized dark"
},
"code-stats-atom": {
"apiKey": "SFMyNTY.WVcxcGNtaHZjM05sYVc1b2NIWT0jI05EUTNNdz09.a2kvc1kY-s1u8D5ge8pqdb1jVYLDHcAAMXa_5_OzBL0"
},
"core": {
"autoHideMenuBar": true,
"disabledPackages": [
"package-generator",
"linter-phpmd",
"linter-phpcs",
"linter-csslint",
"linter-js-standard",
"linter-php"
],
"editor": {
"multiCursorOnClick": true
},
"ignoredNames": [
".git",
".hg",
".svn",
".DS_Store",
"._*",
"Thumbs.db",
"desktop.ini",
"*.bak"
],
"openEmptyEditorOnStart": false,
"packagesWithKeymapsDisabled": [
"change-case",
"atom-autocomplete-php",
"wordpress-autocomplete",
"atom-minify-stand-alone",
"generate-function-description"
],
"packagesWithSnippetsDisabled": [
"wordpress-dictionary"
],
"reopenProjectMenuCount": 20,
"telemetryConsent": "no",
"uriHandlerRegistration": "always",
"useProxySettingsWhenCallingApm": false
},
"css-specificity": {},
"cssbeautify": {
"autoSemicolon": true,
"indentType": "tab"
},
"docblockr": {
"align_tags": "shallow",
"auto_add_method_tag": true,
"c_style_block_comments": true,
"deep_indent": true,
"extra_tags": [
"@version 1.0.0",
"@since 1.0.0",
"@license https://umtpress.com/license UMTPress Team License"
],
"extra_tags_go_after": true,
"lower_case_primitives": true,
"spacer_between_sections": "after_description"
},
"editor": {
"atomicSoftTabs": false,
"fontSize": 17,
"showIndentGuide": true,
"zoomFontWhenCtrlScrolling": false,
"nonWordCharacters": "/\\()\"':,.;<>~!@#%^&*|+=[]{}`?-…"
},
"exception-reporting": {
"userId": "3cb87292-5191-40a3-8967-c405f1e93672"
},
"figletify": {
"font": "ANSI Shadow"
},
"file-header": {
"copyright": "Copyright © 2020 Amirhosseinhpv, All rights reserved.",
"dateTimeFormat": "YYYY/MM/DD HH:mm:ss",
"email": "[email protected]",
"ignoreListForAutoUpdateAndAddingHeader": [
"text.plain.null-grammar",
"text.basic",
"source.gfm",
".md"
],
"license": "GPLv2",
"numOfEmptyLinesAfterNewHeader": 2,
"realname": "Amirhosseinhpv"
},
"file-icons": {
"onChanges": true
},
"force-text-direction": {
"forceDirection": "RTL"
},
"git-diff": {
"showIconsInEditorGutter": true
},
"github": {
"remoteFetchProtocol": "ssh",
"showDiffIconGutter": true
},
"highlight-selected": {
"highlightBackground": true,
"lightTheme": true,
"showResultsOnScrollBar": true
},
"hyperclick": {
"win32TriggerKeys": "altKey"
},
"ide-php": {
"autocompletePriority": "lower",
"connectionType": "socket",
"phpPath": "C:\\xampp\\php\\php.exe"
},
"linter": {},
"linter-eslint": {
"disabling": {
"disableWhenNoEslintConfig": false
},
"global": {
"globalNodePath": "C:\\Users\\Amirhossein.Dev\\AppData\\Roaming\\npm",
"useGlobalEslint": true
},
"lintHtmlFiles": true
},
"linter-htmlhint": {
"disableWhenNoHtmlhintConfig": false
},
"linter-js-standard": {
"lintHtmlFiles": true,
"lintMarkdownFiles": true
},
"linter-php": {
"executablePath": "C:\\xampp\\php\\php.exe",
"ignorePhpIni": true
},
"linter-phpcs": {
"autoConfigSearch": false,
"otherLanguages": {},
"tabWidth": 4
},
"linter-phpmd": {
"disableWhenNoConfigFile": true
},
"linter-spell": {
"spellPath": "C:\\Program Files (x86)\\Aspell\\bin\\aspell.exe"
},
"linter-tidy": {
"executablePath": "W:\\2. Work\\Ponisha\\___SVN GIT\\html5_tidy\\tidy.exe"
},
"linter-ui-default": {
"panelHeight": 300,
"showProviderName": true
},
"local-history": {
"autoPurge": true,
"daysLimit": 14,
"fileSizeLimit": 5000000,
"historyStoragePath": "F:\\atom-local-history"
},
"markdown-preview-plus": {
"syntaxThemeName": "atom-dark-syntax"
},
"minimap": {
"absoluteMode": true,
"adjustAbsoluteModeHeight": true,
"plugins": {
"bookmarks": true,
"bookmarksDecorationsZIndex": 0,
"find-and-replace": true,
"find-and-replaceDecorationsZIndex": 0,
"linter": true,
"linterDecorationsZIndex": 0,
"minimap-autohider": true,
"minimap-autohiderDecorationsZIndex": 0,
"minimap-hide": true,
"minimap-hideDecorationsZIndex": 0,
"minimap-quick-highlight": true,
"minimap-quick-highlightDecorationsZIndex": 0,
"my-minimap-plugin": true,
"my-minimap-pluginDecorationsZIndex": 0
}
},
"navigate": {
"f1": "http://devdocs.io/#q=&searchterm",
"f10": "https://duckduckgo.com/?q=&searchterm",
"f6": "http://www.bing.com/search?q=&searchterm"
},
"pdf-view": {
"fitToWidthOnOpen": true,
"paneToUseInSynctex": "right"
},
"php-cs-fixer": {
"executablePath": "C:\\xampp\\php\\php-cs-fixer-v2.phar",
"phpExecutablePath": "C:\\xampp\\php\\php.exe",
"showInfoNotifications": true
},
"php-fmt": {
"executablePath": "C:\\fmt.phar"
},
"php-ide-serenata": {
"core": {
"phpCommand": "C:/xampp/php/php.exe"
},
"storagePath": "C:\\Users\\iAmirhosseinhpv Dev\\AppData\\Roaming\\php-ide-serenata"
},
"php-integrator-autocomplete-plus-legacy-php56": {
"disableBuiltinAutocompletion": false
},
"php-integrator-base-legacy-php56": {
"phpCommand": "C:/xampp/php/php.exe"
},
"php-server": {
"phpIni": "C:\\xampp\\php\\php.ini",
"phpPath": "C:\\xampp\\php\\php.exe",
"startPort": 1212
},
"pigments": {
"filetypesForColorWords": [
"css",
"less",
"styl",
"stylus",
"sass",
"scss",
"html",
"js"
],
"supportedFiletypes": [
"*",
"php",
"html",
"css",
"js"
]
},
"pp-markdown": {
"cssURL": "markdown1"
},
"preview": {
"_analyticsUserId": "b96e87e7-f8e5-4080-9056-f946e835bfca"
},
"remote-ftp": {
"beta": {
"multipleHosts": true
},
"connector": {
"autoUploadOnSave": "only when connected"
},
"dev": {
"debugResponse": true
},
"notifications": {
"enableTransfer": true
},
"statusbar": {
"enable": true
},
"tree": {
"showProjectName": "remote"
}
},
"remove-whitespace": {},
"spell-check": {
"locales": [
"en-US",
"fa-IR"
]
},
"split-diff": {
"ignoreWhitespace": true
},
"svg-preview": {
"openPreviewAutomatically": true,
"openPreviewInPane": "down"
},
"symbols-tree-view": {
"defaultWidth": 300,
"zAutoHideTypes": "variable class"
},
"sync-settings": {
"autoCheckForUpdatedBackup": "no",
"gistDescription": "ATOM IDE automatic update by http://atom.io/packages/sync-settings",
"hiddenSettings": {}
},
"trailing-semicolon": {
"behaviorAll": "Do nothing"
},
"welcome": {
"showOnStartup": false
},
"wrap-guide": {
"columns": [
120,
180
]
}
},
".html.php.text": {
"editor": {
"preferredLineLength": 120
},
"wrap-guide": {
"columns": [
120
]
}
},
".coffee.source": {
"editor": {
"preferredLineLength": 180
},
"wrap-guide": {
"columns": [
120,
180
]
}
}
}
# @Author: Amirhosseinhpv <amirhosseinhpv>
# @Date: 2019/12/07 09:48:34
# @Email: [email protected]
# @Last modified by: Amirhosseinhpv
# @Last modified time: 2021/01/14 08:49:41
# @License: GPLv2
# @Copyright: Copyright © 2020 Amirhosseinhpv, All rights reserved.
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
# '.source.coffee':
# 'Console log':
# 'prefix': 'log'
# 'body': 'console.log $1'
#
# Each scope (e.g. '.source.coffee' above) can only be declared once.
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
'.html':
'jQuery 3.5.1':
'prefix': 'jq'
'body': '<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>'
'.php':
'PHP Log :: gray-styled':
'prefix': 'log1'
'body': 'echo "<pre style=\'text-align: left; direction: ltr; border:1px solid gray; padding: 1rem;\'>". print_r($1,1) ."</pre>";'
'PHP Log :: gray-styled-exit':
'prefix': 'log2'
'body': 'echo "<pre style=\'text-align: left; direction: ltr; border:1px solid gray; padding: 1rem;\'>". print_r($1,1) ."</pre>";exit;'
'PHP Log :: left-styled-red':
'prefix': 'log3'
'body': 'echo "<pre style=\'text-align: left; direction: ltr; border:1px solid indianred; padding: 1rem; color: indianred;display: block;z-index: 77777777777 !important;position: relative;background: white;\'>". print_r($1,1) ."</pre>";'
'PHP Log :: center-styled-blue':
'prefix': 'log4'
'body': 'echo "<pre style=\'text-align: center; direction: ltr; border:1px solid #1e45cf; padding: 1rem; color: #1e45cf;\'>". print_r($1,1) ."</pre>";'
'WordPress Debug':
'prefix': 'wpdeb'
'body': "define( 'WP_DEBUG', true );\ndefine( 'WP_DEBUG_LOG', true );\ndefine( 'WP_DEBUG_DISPLAY', true );\ndefine( 'SCRIPT_DEBUG', true );\ndefine( 'SAVEQUERIES', true );\n@ini_set( 'display_errors', 1 );\nerror_reporting(E_ERROR|E_WARNING);\ndefine( 'WC_TEMPLATE_DEBUG_MODE', true );"
'WordPress Translate':
'prefix': '_'
'body': "__(\"$1\",$this->td)$2"
'WordPress Translate-X':
'prefix': 'x'
'body': "_x(\"$1\",\"$2\",$this->td)$3"
'WordPress Current Timestamp':
'prefix': 'cur'
'body': "current_time( \"timestamp\" )"
'Text-domain':
'prefix': 'td'
'body': "$this->td"
'Copyright Dev':
'prefix': 'dev'
'body': '/*##################################################\nLead Developer: [amirhosseinhpv](https://hpv.im/)\n##################################################*/'
'.css':
"Neuteron Span":
"prefix": "sel"
"body": "
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
pointer-events: none;"
"Unselectable Span":
"prefix": "sel"
"body": "
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;"
'.js':
'jQuery eventListener':
'prefix': 'doc'
'body': '$(document).on("$1click tap", "$2", function(e){\r\n\te.preventDefault();\r\n\tvar me = $(this);\r\n\t$3\r\n});'
'jQuery preventDefault':
'prefix': 'e'
'body': 'e.preventDefault();'
'jQuery for Wordpress':
'prefix': 'jq'
'body': '(function($) {
\n\tvar _pepro_ajax_request = null;
\n\t$(document).ready(function() {
\n\t\t$(document).on("click", ".ajax-request", function(e) {
\n\t\t\te.preventDefault();
\n\t\t\tif (_pepro_ajax_request != null) {
\n\t\t\t\t_pepro_ajax_request.abort();
\n\t\t\t}
\n\t\t\t_pepro_ajax_request = $.ajax({
\n\t\t\t\ttype: "POST",
\n\t\t\t\tdataType: "json",
\n\t\t\t\turl: _i18n.ajax,
\n\t\t\t\tdata: {
\n\t\t\t\t\taction: _i18n.td,
\n\t\t\t\t\tnonce: _i18n.nonce,
\n\t\t\t\t\twparam: "add-cart",
\n\t\t\t\t\tlparam: JSSDATA,
\n\t\t\t\t},
\n\t\t\t\tsuccess: function(e) {
\n\t\t\t\t\tif (e.success === true) {
\n\t\t\t\t\t\tconsole.info(e.data.msg);
\n\t\t\t\t\t\t/*window.location.href = r.url;*/
\n\t\t\t\t\t} else {
\n\t\t\t\t\t\tconsole.error(e.data.msg);
\n\t\t\t\t\t}
\n\t\t\t\t},
\n\t\t\t\terror: function(e) {
\n\t\t\t\t\tconsole.error("Unknown Error Occured!");
\n\t\t\t\t},
\n\t\t\t\tcomplete: function(e) {
\n\t\t\t\t\t//console.log("ajax complete");
\n\t\t\t\t},
\n\t\t\t});
\n\t\t});
\n\t});
\n})(jQuery);'
'Console Colored Log':
'prefix': 'log2'
'body': 'setTimeout(console.log.bind(console, `%c${$1}`, "color:cyan;", ""));'
/**
* @Author: Amirhosseinhpv
* @Date: 2019/12/07 09:48:34
* @Email: [email protected]
* @Last modified by: Amirhosseinhpv
* @Last modified time: 2020/11/28 12:53:00
* @License: GPLv2
* @Copyright: Copyright © 2020 Amirhosseinhpv, All rights reserved.
*/
atom-text-editor.editor .gutter .line-number.foldable .icon-right {
visibility: visible;
}
.title.icon::before {
font-size: 1.2rem !important;
}
.title.icon.php-icon::before {
font-size: 1.7rem !important;
left: -5px !important;
top: 2px !important;
}
atom-text-editor .wrap-guide {
width: 1px;
background-color: rgba(56, 64, 74, 0.51);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment