Skip to content

Instantly share code, notes, and snippets.

View TheJaredWilcurt's full-sized avatar

The Jared Wilcurt TheJaredWilcurt

View GitHub Profile
// Building Scout-App for Windows
// Prerequisites: Must have Node, NPM, and Bower installed globally.
// Variables and Functions
var start = Date.now() + '';
var fs = require('fs-extra');
var execSync = require('child_process').execSync;
var build = '../scout-app-build/win32/Scout-App/';
var bowerJSON = fs.readJsonSync('bower.json');
var _marked = [createIterator].map(regeneratorRuntime.mark);
var array = [1, 2, 3];
function createIterator(arr) {
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, item;
return regeneratorRuntime.wrap(function createIterator$(_context) {
while (1) {
switch (_context.prev = _context.next) {
//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//### Process All CMD Definitions
//
//>This loops through all `<def>`'s and processes the value of
// them to create the correct key value pairs on the UGUI Args
// Object.
function patternMatchingDefinitionEngine() {
//A regular expression that matches `((x))` and captures `x`
var re = /\(\((.*?)\)\)/gi;
$("def").each(function(index, value) {
var def = value;
var definition = $("def").html();
var arg = window.main.args[$("def").attr("name")];
var match;
var currentIndex = 0;
var separators = [];
var args = [];
while (true) {
if ((match = re.exec(definition)) !== null) {

Thanks for posting. I'll clear up a little bit about how the FTUX currently works and the project auto-guesser.

FTUX

  1. The app loads, sees you don't have any projects in your saved settings file (or no save settings file).
  2. The sidebar and project view are hidden. The FTUX view is displayed.
  3. We scan the following directories on the user's computer: (Just using Windows for this example, but we check for the same things on each OS)
  • C:\Users\USERNAME\github
  • C:\Users\USERNAME\projects
  • C:\Users\USERNAME\repositories
@charset "utf-8"; // Character type for the stylesheet
// ITCSS: SETTINGS
@import "var"; // Sass Variables
// ITCSS: TOOLS
@import "mixins"; // Sass Mixins
@import "functions"; // Sass Functions
//From UGUI.io
//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//### B01. Run CMD
//
//>This is what makes running your CLI program and arguments
// easier. Examples below to make life simpler.
//
//> runcmd('pngquant --force "file.png"');
//
//From UGUI.io
//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//### B01. Run CMD
//
//>This is what makes running your CLI program and arguments
// easier. Cow & Taco examples below to make life simpler.
//>
//
//> $("#taco").click( function() {
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>Test</title>
<style> * { font-family: sans-serif; } </style>
</head>
<body>
<h1>Test.</h1>
<script>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>Paginated HTML</title>
<style>
* {
font-family: sans-serif;
}
p {