javascript:(function(){
allowCopyAndPaste = function(e){
e.stopImmediatePropagation();
return true;
};
document.addEventListener('copy', allowCopyAndPaste, true);
document.addEventListener('paste', allowCopyAndPaste, true);
document.addEventListener('onpaste', allowCopyAndPaste, true);
})();
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
| \documentclass[11pt, oneside]{article} | |
| \usepackage[margin=0.5in]{geometry} | |
| \geometry{letterpaper} | |
| \usepackage[parfill]{parskip} | |
| \usepackage{graphicx} | |
| \usepackage{amssymb} | |
| \usepackage{xcolor} | |
| \pagecolor{white} | |
| \usepackage[colorlinks = true, linkcolor = blue, urlcolor = blue]{hyperref} | |
| \pagestyle{empty} |
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
| import Vue from 'vue' | |
| // the list of vue components to install | |
| import components from './vueComponents' | |
| class SlVueWrapper { | |
| constructor($timeout) { | |
| this.name = 'vue'; | |
| this.restrict = 'A'; | |
| this.terminal = true; |
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
| 'use strict'; | |
| /** | |
| * Person class. | |
| * | |
| * @constructor | |
| * @param {String} name - name of a person. | |
| * @param {Number} age - age of a person. | |
| * @param {String} gender - gender of a person. | |
| */ |
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
| /** | |
| * Inspired by @MoOx original script: https://gist.github.com/MoOx/93c2853fee760f42d97f | |
| * Adds file download per @micalevisk https://gist.github.com/MoOx/93c2853fee760f42d97f#gistcomment-2660220 | |
| * | |
| * Changes include: | |
| * - Get the description from the `title` attribute instead of `aria-label` (doesn't exist anymore) | |
| * - Use style.backgroundColor and parse the rgb(...) to hex (rather than regex parsing of 'style' string) | |
| * - Downloads labels to a JSON file named after the webpage to know which GitHub repo they came from. | |
| * | |
| * Last tested 2019-July-27: |
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
| /** | |
| * Get current time | |
| * @example 10:34:12 am | |
| * @param {Date} date | |
| * @returns {string} | |
| */ | |
| function getTime(date) { | |
| var hours = date.getHours(); | |
| var minutes = date.getMinutes(); | |
| var seconds = date.getSeconds(); |
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
| ### | |
| ### | |
| ### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
| ### https://christitus.com/windows-tool/ | |
| ### https://github.com/ChrisTitusTech/winutil | |
| ### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
| ### iwr -useb https://christitus.com/win | iex | |
| ### | |
| ### OR take a look at | |
| ### https://github.com/HotCakeX/Harden-Windows-Security |
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
| /* | |
| * Gulpfile | |
| * @author Michael McDermott | |
| * Created on 5/12/15. | |
| */ | |
| 'use strict'; | |
| var gulp = require('gulp'); | |
| var path = require('path'); |
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
| <div ng-app> | |
| <div ng-controller="TestCtrl"> | |
| <ul ng-repeat="elements in array" watchers-toggler="toggler()"> | |
| <li ng-repeat="element in elements">{{element}}</li> | |
| </ul> | |
| </div> | |
| </div> |
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
| var myApp = angular.module('myApp', []); | |
| myApp.directive('googleplace', function() { | |
| return { | |
| require: 'ngModel', | |
| scope: { | |
| ngModel: '=', | |
| details: '=?' | |
| }, | |
| link: function(scope, element, attrs, model) { |
NewerOlder