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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css"> | |
<style> | |
#map { height: 400px; width: 100% } | |
#giftLayer img { display: none } | |
</style> | |
</head> | |
<body> |
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
var should = require('chai').should(); | |
var specify = require('./specify').create(it); | |
// ------------------------ | |
// ARRAY TEST TRADITIONAL | |
// ------------------------ | |
describe('Array (traditional)', function(){ | |
var array = [1, 2, 3]; |
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
$(function () { | |
$('*[data-async="true"]').each(function () { | |
var self = $(this); | |
if (self.data('handled') != null) return; | |
var events = self.data('events') || 'click'; | |
self.bind(events, function (e) { | |
var preventDefault = self.data('prevent-default'); | |
if (preventDefault == 'true') e.preventDefault(); | |
var confirmMessage = self.data('confirm'); |
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
" buffers | |
map <Tab> :bn!<CR> | |
map <S-Tab> :bp!<CR> | |
map <S-q> :bw<CR> | |
" search | |
map <C-k> :noh<CR> | |
" disable page up down | |
map <PageUp> <nop> |
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
(function(){var a=Array.prototype.slice;var b=a.call(document.getElementsByTagName('img'));var c=a.call(document.getElementsByTagName('iframe'));var d=a.call(document.getElementsByTagName('object'));var e=b.concat(c).concat(d);for(var i=0;i<e.length;i++){e[i].style.visibility='hidden'};var f=document.getElementsByTagName('*');for(var i=0;i<f.length;i++){var g=f[i].attributes.style;var h=g?g.value+';':'';f[i].setAttribute('style',h+'background-image: none !important')};return false})(); |
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
public class PersistentList<T> : IList<T> | |
{ | |
private static readonly object locker = new object(); | |
private List<T> memoryList; | |
public PersistentList() : this(null) { } | |
public PersistentList(string filePath) | |
{ | |
FilePath = filePath ?? String.Concat(Path.GetTempPath(), typeof(T).Name, ".list"); |
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
# This is a super **SIMPLE** example of how to create a very basic powershell webserver | |
# 2019-05-18 UPDATE — Created by me and and evalued by @jakobii and the comunity. | |
# Http Server | |
$http = [System.Net.HttpListener]::new() | |
# Hostname and port to listen on | |
$http.Prefixes.Add("http://localhost:8080/") | |
# Start the Http Server |
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
<?xml version="1.0" encoding="utf-16"?> | |
<StorableColorTheme xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<Keys> | |
<string>ErrorForegroundColor</string> | |
<string>ErrorBackgroundColor</string> | |
<string>WarningForegroundColor</string> | |
<string>WarningBackgroundColor</string> | |
<string>VerboseForegroundColor</string> | |
<string>VerboseBackgroundColor</string> | |
<string>DebugForegroundColor</string> |
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
function Load-Packages | |
{ | |
param ([string] $directory = 'Packages') | |
$assemblies = Get-ChildItem $directory -Recurse -Filter '*.dll' | Select -Expand FullName | |
foreach ($assembly in $assemblies) { [System.Reflection.Assembly]::LoadFrom($assembly) } | |
} |
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
data:text/html, | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Notepad</title> | |
<link rel="shortcut icon" href="http://www.veryicon.com/icon/16/Application/App/notepad.png" /> | |
<script> | |
function onBodyLoad() { | |
document.body.addEventListener('DOMSubtreeModified', function () { |
NewerOlder