I hereby claim:
- I am kogasilverdragon on github.
- I am kogasilverdragon (https://keybase.io/kogasilverdragon) on keybase.
- I have a public key ASCKItT_tyjWUINWRa_Mro8C_tqZEt6037xr2RW6NHZEWgo
To claim this, I am signing this object:
| .container > div > div:nth-child(2) { | |
| --gap-size: 1rem; | |
| display: flex; | |
| gap: var(--gap-size); | |
| flex-wrap: wrap; | |
| } | |
| .container .card { | |
| flex-basis: calc(33.333% - var(--gap-size)); |
| // Get config from import params | |
| const url = new URL(import.meta.url); | |
| const config = { | |
| rewardTitle: url.searchParams.get('rewardTitle'), | |
| // imageUrl: url.searchParams.get('imageUrl'), | |
| seconds: Number(url.searchParams.get('seconds')) || 5 // default to 5 seconds | |
| } | |
| // Will subscribe to these events, mapped directly to the websocket subscription request. | |
| window.streamerbot.subscribeTo({ |
| constructor(public router: Router) { | |
| this.router.events.subscribe(event => { | |
| if (event instanceof NavigationEnd) { | |
| const fragment = router.parseUrl(router.url).fragment; | |
| if (fragment) { | |
| const element = document.getElementById(fragment); | |
| if (element) { | |
| element.scrollIntoView({ | |
| behavior: 'smooth', | |
| block: 'start', |
I hereby claim:
To claim this, I am signing this object:
| /* | |
| * Card | |
| */ | |
| .card { | |
| position: relative; | |
| display: inline-block; | |
| width: 100px; | |
| height: 75px; | |
| -webkit-perspective: 800px; |
| (function() { | |
| Raphael.fn.entityBox = function ( text, position, size ) { | |
| text = text.trim() | |
| var textElement = this.text(0, 0, text).attr({ | |
| 'fill': 'transparent', | |
| 'stroke': 'transparent', | |
| 'font-family': 'Verdana', | |
| 'font-size': '14pt' |
| jQuery.fn.format = function( str, element ) { | |
| /* ======================================================================= * | |
| * Format a string: Merge the STR with the ELEMENT, replacing the | |
| * placeholders with the values in the array. | |
| * | |
| * Parameters: | |
| * | |
| * - STR: Array of values to be inserted on the result string | |
| * - ELEMENT: The string template with placeholders |
| import urllib2, re | |
| print( 'Getting data...' ) | |
| data = urllib2.urlopen( 'https://www.dropbox.com/sh/8lrs3pausdpk1ic/w22Hb-Mgc2' ) | |
| rOlPattern = re.compile(r'<a href="https://www.dropbox.com/sh/[A-z0-9:/%\?\-\.\_ ]+?\..{3}" target="_top" class="filename-link".+?/a>', re.M | re.I ) | |
| rUrlPattern = re.compile( r'https://www.dropbox.com/sh/[A-z0-9:/%\?\-\.\_ ]+?\..{3}' ) | |
| print( 'Parsing data...' ) | |
| rTitlePattern = re.compile( r'[A-z 0-9\-\=\+\.\?\$\%]+?' ) |
| $.ajax({ | |
| type: 'GET', | |
| url: //SomeXML | |
| dataType: 'xml', | |
| success: function(xml) { | |
| ContentRenderer($(xml).find('main > content'), $("#content")) | |
| }, | |
| error: function(data) { | |
| console.debug("Fail:"+data.status) | |
| console.debug("Fail:"+data.statusText) |