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
| { | |
| "manifest_version": 2, | |
| "name": "Yet another XKCD substitutions chome extension", | |
| "description": "Making everyday browsing a bit more fun", | |
| "version": "1.0", | |
| "browser_action": { | |
| "default_icon": "/img/icon.png", | |
| "default_title": "XKCD Substitutions" | |
| }, | |
| "background": { |
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
| // plugin is enabled by default. | |
| var enabled = true; | |
| chrome.storage.sync.get('xkcdEnabled', function(result){ | |
| if (result.xkcdEnabled === undefined) { | |
| // add config option to local storage | |
| chrome.storage.sync.set({'xkcdEnabled': enabled}, function(){}); | |
| } | |
| else { | |
| // config is already set | |
| enabled = result.xkcdEnabled; |
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
| // this script run on document_idle. | |
| var substitutions = [ | |
| // Batman: http://www.xkcd.com/1004/ | |
| ["Batman", "A man dressed like a bat"], | |
| // s/keyboard/leopard: http://www.xkcd.com/1031/ | |
| ["Keyboard", "Leopard"], | |
| // Substitutions: https://xkcd.com/1288/ | |
| ["Witnesses", "These dudes I know"], | |
| ["Allegedly", "Kinda probably"], |
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
| var msg = new SpeechSynthesisUtterance(); | |
| msg.text = "Hello World"; | |
| window.speechSynthesis.speak(msg); |
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
| if (a) { | |
| //code | |
| } | |
| else if(b) { | |
| //code | |
| } | |
| else { | |
| //code | |
| } |
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
| buildscript { | |
| ext { | |
| springBootVersion = '1.3.0.RELEASE' | |
| } | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") | |
| } |
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
| package org.broonix.controller; | |
| import junit.framework.Assert; | |
| import org.broonix.DemoStarterApplicationTests; | |
| import org.junit.Test; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.web.servlet.ModelAndView; | |
| /** | |
| * Created by: Brooks Lyrette |
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
| @RunWith(SpringJUnit4ClassRunner.class) | |
| @SpringApplicationConfiguration(classes = {SampleApplication.class}, name = "acceptanceTestContext") | |
| @WebIntegrationTest | |
| public abstract class AbstractAcceptanceTests { | |
| } |
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
| @RunWith(SpringJUnit4ClassRunner.class) | |
| @SpringApplicationConfiguration(classes = {SampleApplication.class}, name = "acceptanceTestContext") | |
| @WebIntegrationTest | |
| public abstract class AbstractAcceptanceTests { | |
| @Autowired | |
| protected JdbcTemplate jdbcTemplate; | |
| /** | |
| * Backs up the database before running this test. |
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
| language: java | |
| jdk: | |
| - oraclejdk8 | |
| addons: | |
| firefox: "42.0" | |
| before_script: | |
| - "export DISPLAY=:99.0" | |
| - "sh -e /etc/init.d/xvfb start" |