This file contains 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
/* | |
font tiles in GBDK are always inserted at the start. | |
This script will offset existing tile maps by the number of | |
tiles in the font. | |
*/ | |
const fontTileSize = 37; | |
const tileMap = [/* Tile map array of hex values */]; |
This file contains 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
<# | |
Will install a VSCode extension. | |
https://github.com/hoovercj/vscode-power-mode | |
Sets a custom image. | |
Best to put this on a share then execute on anyones machine that they leave unlocked. | |
**NOTE** | |
It will merge with their existing settings.json. May want to take a backup first. |
This file contains 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
if (!window.Enumerator) { | |
window.Enumerator = function (c) { | |
this._c = Array.from(c); | |
this._index = 0; | |
} | |
window.Enumerator.prototype.atEnd = function () { | |
return this._index >= this._c.length - 1; | |
} | |
This file contains 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
node_modules | |
dist/ | |
yarn.lock | |
wwwroot |
This file contains 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
'use stirct'; | |
const electron = require('electron'), | |
userDataPath = (electron.app || electron.remote.app).getPath('userData'), | |
path = require('path'), | |
fs = require('fs'); | |
class Store { | |
constructor(configName = '') { | |
// Probably want to implement error handling |
This file contains 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
.directive('ignoreDisabled', ['$exceptionHandler', ($exceptionHandler) => { | |
return { | |
restrict: 'A', | |
require: 'ngModel', | |
link: ($scope, elem, attr, ctrl) => { | |
if (!attr.hasOwnProperty('ngDisabled')) { | |
$exceptionHandler(new ReferenceError('Attempt to use ignoreDisabled on element without ngDisabled.')); | |
} else { | |
$scope.$watch(attr.ngDisabled, (val, oldVal) => { | |
if (val === true && val !== oldVal) { |
This file contains 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
let promisify = (fn) => (...args) => | |
new Promise((rCB, eCB) => | |
fn(...args, (e, r) => { | |
if (e) | |
eCB(e); | |
else | |
rCB(r); | |
})); | |
promisify(sass.render({ |
This file contains 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
@mixin vendorPrefix($prop, $val) { | |
-webkit-#{$prop}: $val; | |
-moz-#{$prop}: $val; | |
-ms-#{$prop}: $val; | |
-o-#{$prop}: $val; | |
#{$prop}: $val; | |
} | |
/* | |
Use: |
This file contains 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
/* | |
Variables: | |
$screen-size-small | |
$screen-size-medium | |
$screen-size-large | |
$grid-small-screen-width | |
$grid-medium-screen-width | |
$grid-large-screen-width | |
This file contains 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
"use strict"; | |
let group = (arr, by) => arr.reduce((prev, cur) => { | |
let val = isFunction(by) ? by(cur) : cur[by]; | |
prev.hasOwnProperty(val) ? prev[val].push(cur) : prev[val] = [cur]; | |
return prev; | |
}, {}), | |
isFunction = (x) => Object.prototype.toString.call(x) === "[object Function]"; | |
module.exports = () => ({group, isFunction}); |
NewerOlder