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
| type TypeMap = { | |
| 'number?'?: number; | |
| number: number; | |
| 'string?'?: string; | |
| string: string; | |
| 'boolean?'?: boolean; | |
| boolean: boolean; | |
| }; | |
| type OptionsArg = { |
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
| Fresh semver-parser v0.7.0 | |
| Fresh autocfg v0.1.6 | |
| Fresh rand_core v0.4.2 | |
| Fresh unicode-xid v0.2.0 | |
| Fresh lazy_static v1.4.0 | |
| Fresh nodrop v0.1.13 | |
| Fresh cfg-if v0.1.9 | |
| Fresh stable_deref_trait v1.1.1 | |
| Fresh scopeguard v0.3.3 | |
| Fresh smallvec v0.6.10 |
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 System.Random | |
| getRandomWord :: [String] -> IO String | |
| getRandomWord words = | |
| do n <- randomRIO (0, min 0 ((length words) - 1)) | |
| return $ words !! n | |
| check :: String -> String -> Char -> (Bool,String) | |
| check word display c | |
| = (c `elem` word, [if x==c |
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 React from 'react'; | |
| import styled from 'styled-components'; | |
| const rotate = keyframes` | |
| 100% { | |
| transform: rotate(360deg); | |
| } | |
| ` | |
| const dash = keyframes` |
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
| // I've passed the original symmetrical code through the Prettier | |
| // Most of the lines do nothing but make code look symmetrical | |
| // Still it's amazing :) | |
| { | |
| 0.0 - {} - 0 | |
| } | |
| xXXx = wYYw = // 'alert(xXXx)' | |
| ([] + !!+[])[0 ** 0.0] + // 'a' | |
| [[]] + // '' |
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
| // 1 | |
| var foo = 2 | |
| function bar() { | |
| if (!foo) { | |
| var foo = 5 | |
| } | |
| console.log(foo) | |
| } | |
| bar() |
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 { IAugmentedJQuery, IComponentOptions } from 'angular' | |
| import { fromPairs, keys, merge } from 'lodash' | |
| import NgComponent from 'ngcomponent' | |
| import * as Vue from 'vue' | |
| export function vue2angular<Props>( | |
| Component: Vue.ComponentOptions<Vue> | |
| ): IComponentOptions { | |
| let names: string[]; | |
| if (Component.props) { |
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
| chrome.extension.sendMessage({}, function (response) { | |
| var readyStateCheckInterval = setInterval(function () { | |
| if (document.readyState === "complete") { | |
| clearInterval(readyStateCheckInterval); | |
| console.log("TP Copy extension now works!"); | |
| setInterval(function () { | |
| if (!document.getElementById('copybaba')) { | |
| if (document.querySelector('.ui-title')) { |
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 cop(text) { | |
| if (document.execCommand) { | |
| var textArea = $('<textarea></textarea>'); | |
| textArea.css({ | |
| position: 'absolute', | |
| top: 0, | |
| left: -10000 | |
| }); | |
| textArea.val(text); | |
| $(document.body).append(textArea); |
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
| scrollSensitive |