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
| define(function (require, module, exports) { | |
| var PreferencesManager = brackets.getModule("preferences/PreferencesManager"), | |
| prefs = PreferencesManager.getExtensionPrefs("TestExt"); | |
| // Boolean | |
| prefs.definePreference("one", "boolean", true, { | |
| excludeFromHints: true // This won't show up in the code hints. | |
| }); | |
| // Boolean Preference that will show up in code hints |
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
| define(function (require, exports, module) { | |
| var CodeMirror = brackets.getModule("thirdparty/CodeMirror/lib/codemirror"), | |
| LanguageManager = brackets.getModule("language/LanguageManager"); | |
| CodeMirror.defineSimpleMode("handlebars", { | |
| start: [ | |
| { regex: /\{\{!--/, push: "dash_comment", token: "comment" }, | |
| { regex: /\{\{!/, push: "comment", token: "comment" }, | |
| { regex: /\{\{/, push: "handlebars", token: "tag" } | |
| ], |
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
| alias []="brackets" | |
| alias php="winpty php" | |
| alias php7="winpty php7" | |
| alias serve="winpty php -S localhost:8080 -t ." | |
| alias serve7="winpty php7 -S localhost:8080 -t ." | |
| alias python="winpty python" | |
| alias python3="winpty python3" | |
| alias perl="winpty perl" | |
| alias ruby="winpty ruby" | |
| alias node="winpty node" |
idunprefixed identifier of the preference. Generally a dotted name.typeData type for the preference (generally, string, boolean, number)initialDefault value for the preferenceoptionsAdditional options for a preference
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
| #! /bin/bash | |
| # PHP 7 Initial Compile # | |
| # Author: Maulik Mistry | |
| # Date: Aug 04, 2017 | |
| # References: | |
| # http://www.zimuel.it/install-php-7/ | |
| # http://www.hashbangcode.com/blog/compiling-and-installing-php7-ubuntu | |
| # | |
| # License: BSD License 2.0 |
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
| (function () { | |
| var fs = require("fs"), | |
| xml = require("xml-js"); | |
| var content = fs.readFileSync("gosms_sys119.xml", "utf8"); | |
| var result = xml.xml2json(content, { compact: true, spaces: 4 }); | |
| var styleSent = "color: blue;"; | |
| var styleReceived = "color: red;"; | |
| var stylePara = "font-family: Calibri; font-size: 11pt;"; |
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
| # -*- coding: utf-8 -*- | |
| import torch | |
| import torch.nn as nn | |
| import torch.optim as optim | |
| x_train = torch.Tensor([ | |
| [0, 0], | |
| [0, 1], | |
| [1, 0], |