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
| public string GetAccountNumber() | |
| { | |
| static bool IsRecruit(string purposeCode) => new List<string> { "AR", "SR", "FR" }.Contains(purposeCode); | |
| return (GroupTravel, TravelerType, Destination) switch | |
| { | |
| (true, _, "I") => "6034", | |
| (true, _, "O") => "6035", | |
| (true, _, "F") => "6036", | |
| (false, TravelerType.FacultyStaff, "I") => "6025", | |
| (false, TravelerType.FacultyStaff, "O") => "6026", |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <!-- Meta conf --> | |
| <meta charset="UTF-8"> | |
| <!-- Meta info --> | |
| <title>HTML5 Microdata Resume (CV) Template</title> | |
| <meta name="description" content="An example of how to layout a semantic html5 page for a curriculum vitae/resume"> | |
| <meta name="keywords" content="template, html, semantic, microdata, resume, cv, curriculum, vitae"> | |
| </head> |
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 class="wrap"> | |
| <div class="wrap-inner"> | |
| <div class="swiper-outter"> | |
| <div id="video-swiper" class="swiper-container"> | |
| <div class="swiper-wrapper"> | |
| <div class="swiper-slide"> | |
| <div class="video-container"> | |
| <div class="yt-player" data-id="MxBRpWcXeOA"></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
| using System; | |
| using DynamicAndGenericControllersSample; | |
| public class Book : IObjectBase | |
| { | |
| public Guid Id { get; set; } | |
| public string Title { get; set; } | |
| public string Author { get; set; } |
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 fixImageMaps(force) { | |
| var imgs = document.querySelectorAll("img[usemap]"); | |
| [].forEach.call(imgs, function(img) { | |
| if (!img.naturalHeight) { return; } | |
| var h = img.height / img.naturalHeight; | |
| var w = img.width / img.naturalWidth; | |
| var map = document.getElementsByName(img.useMap.slice(1))[0]; | |
| if (!map) { return; } | |
| for (var i = 0; i < map.children.length; i++) { | |
| var area = map.children[i]; |
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(videoDOMElement){ | |
| if (!window.rotateVideo) { | |
| var timeout = undefined; | |
| var rotation = "off"; | |
| window.rotateVideo = rotateVideo; | |
| } | |
| if (!document.getElementById('bookmarklet-rotated-video')) | |
| { | |
| var dynamicStyle = document.createElement("style"); | |
| dynamicStyle.id = "bookmarklet-rotated-video"; |
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(videoDOMElement){ | |
| if (!window.rotateVideo) { | |
| var timeout = undefined; | |
| var rotation = "off"; | |
| window.rotateVideo = rotateVideo; | |
| } | |
| if (!document.getElementById('bookmarklet-rotated-video')) | |
| { | |
| var dynamicStyle = document.createElement("style"); | |
| dynamicStyle.id = "bookmarklet-rotated-video"; |
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
| /** | |
| * Encrypts plaintext using AES-GCM with supplied password, for decryption with aesGcmDecrypt(). | |
| * (c) Chris Veness MIT Licence | |
| * | |
| * @param {String} plaintext - Plaintext to be encrypted. | |
| * @param {String} password - Password to use to encrypt plaintext. | |
| * @returns {String} Encrypted ciphertext. | |
| * | |
| * @example | |
| * const ciphertext = await aesGcmEncrypt('my secret text', 'pw'); |