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
package com.google.gwt.sample.stockwatcher.client; | |
import com.google.gwt.core.client.GWT; | |
import com.google.gwt.core.client.EntryPoint; | |
import com.google.gwt.core.client.JsArray; | |
import com.google.gwt.http.client.URL; | |
import com.google.gwt.http.client.Request; | |
import com.google.gwt.http.client.RequestBuilder; | |
import com.google.gwt.http.client.RequestCallback; |
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
// In your toolstrip JS onClick event | |
var port chrome.self.connect(); | |
port.postMessage({array:of, some:elements}); | |
// In your content-script | |
// Event handler that listens for responses from | |
// the extension | |
chrome.extension.onConnect().addListener(function(port) { | |
port.onMessage.addListener( function( data ) { | |
// Data is the response, resize your window here |
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
var settings = {}; | |
/** | |
* Event listener for when a user enters their username within | |
* the extension UI. Currently this only works when you're | |
* viewing forums.somethingawful.com since we don't have any | |
* events that can be fired on a localStorage event that occurs | |
* within the extension. | |
* | |
*/ |
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
{ | |
"name": "Sizerator", | |
"version": "1.0", | |
"description": "The first extension that I made.", | |
"toolstrips": [ | |
"my_toolstrip.html" | |
], | |
"permissions": [ | |
"tabs" | |
], |
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
{ | |
"name": "Sizerator", | |
"version": "1.0", | |
"description": "The first extension that I made.", | |
"toolstrips": [ | |
"my_toolstrip.html" | |
], | |
"permissions": [ | |
"tabs" | |
], |
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
// Copyright (c) 2009, William Best and Scott Ferguson | |
// All rights reserved. | |
// | |
// Redistribution and use in source and binary forms, with or without | |
// modification, are permitted provided that the following conditions are met: | |
// * Redistributions of source code must retain the above copyright | |
// notice, this list of conditions and the following disclaimer. | |
// * Redistributions in binary form must reproduce the above copyright | |
// notice, this list of conditions and the following disclaimer in the | |
// documentation and/or other materials provided with the distribution. |
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
const int buttonPin = 2; // Number of the pushbutton pin | |
const int ledPin = 13; // Number of the LED pin | |
int buttonState = 0; | |
int lightOn = false; | |
void setup() { | |
pinMode(ledPin, OUTPUT); | |
pinMode(buttonPin, INPUT); | |
} |
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
<html> | |
<head> | |
<script type="text/javascript" src="js/jquery.js"></script> | |
<script type="text/javascript" src="js/toolstrip-handler.js"></script> | |
<link rel="stylesheet" type="text/css" href="css/toolstrip.css" /> | |
</head> | |
<body> | |
<div class="toolstrip-content bookmarks"> | |
Hello World | |
</div> |
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
int speakerPin = 9; | |
int length = 15; | |
char notes[] = "ccggaagffeeddc "; | |
int beats[] = { 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 4 }; | |
int tempo = 300; | |
void playTone(int tone, int duration) { | |
for (long i = 0; i < duration * 1000L; i += tone * 2) { | |
digitalWrite(speakerPin, HIGH); |
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 git | |
import sys, os | |
import getopt | |
findParentCommit = lambda x: x.data[53:93] | |
def parseFileList(diff): | |
'''Parses filenames out of a diff''' | |
result = [] |
OlderNewer