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
import { Link as MuiLink, LinkProps as MuiLinkProps } from '@mui/material' | |
import NextLink, { LinkProps as NextLinkProps } from 'next/link' | |
import { useRouter } from 'next/router' | |
import * as React from 'react' | |
import { useStyles } from 'tss-react/mui' | |
import { colors } from 'lib/root' | |
/* eslint-disable jsx-a11y/anchor-has-content */ | |
interface NextLinkComposedProps |
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
<style> | |
.embeddedServiceHelpButton .helpButton .uiButton { | |
background-color: #0068B5; | |
font-family: "Founders Grotesk", "Roboto", sans-serif; | |
font-size: 0.600em; | |
min-width: 9em; | |
max-width: 11em; | |
} | |
.embeddedServiceHelpButton .helpButton .uiButton:focus { | |
outline: 1px solid #0068B5; |
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
import { Component, ViewEncapsulation, ViewContainerRef } from '@angular/core'; | |
@Component({ | |
selector: 'app', | |
template: require('./app.component.pug'), | |
styles: [require('./app.component.scss')], | |
encapsulation: ViewEncapsulation.None | |
}) | |
export class AppComponent { | |
loaded: boolean = 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
# if manage.py test was called, use test settings | |
if 'test' in sys.argv: | |
from scc.host_settings.test import * |
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
# use require to load any .js file available to the asset pipeline | |
#= require jquery | |
#= require sony/sony | |
#= require angular-mocks | |
describe 'HomeCtrl', -> | |
$httpBackend | |
beforeEach inject ($injector) -> |
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
# use require to load any .js file available to the asset pipeline | |
#= require jquery | |
#= require controllers | |
#= require angular-mocks | |
describe "App controllers", -> | |
$httpBackend | |
beforeEach inject ($injector) -> | |
$httpBackend = $injector.get('$httpBackend') |
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
Warning: "config" scripts exist outside your system or Homebrew directories. | |
`./configure` scripts often look for *-config scripts to determine if | |
software packages are installed, and what additional flags to use when | |
compiling and linking. | |
Having additional scripts in your path can confuse software installed via | |
Homebrew if the config script overrides a system or Homebrew provided | |
script of the same name. We found the following "config" scripts: | |
/usr/local/opt/php54/bin/php-config |
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
while not redis.setnx(self.THROTTLE_KEY, datetime.datetime.now() + datetime.timedelta(seconds=3)): | |
time.sleep(1) | |
redis.expire(self.THROTTLE_KEY, 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
[u'2901', | |
u'2896', | |
u'760', | |
u'2900', | |
u'4785', | |
u'4784', | |
u'1739', | |
u'1830', | |
u'1831', | |
u'1731', |
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
from giantbomb.game_achievements.models import Achievement | |
from giantbomb.game_achievements.services import base, wow | |
wf = wow.WarcraftFetcher() | |
agg = base.Aggregator() | |
wow_achs = Achievement.objects.filter(service_game__service=4) | |
num_achs = len(wow_achs) | |
for index, ach in enumerate(wow_achs): | |
print '(%s/%s): Replacing icon of %s' % (index+1, num_achs, ach) | |
try: |
NewerOlder