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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Edge for Video</title> | |
| <style> | |
| #c1 { | |
| display:none; | |
| } | |
| </style> | |
| <script type="text/javascript"> |
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
| <html> | |
| <head> | |
| <script> | |
| window.onload = function() { | |
| if (navigator.webkitGetUserMedia) { | |
| navigator.getUserMedia = navigator.webkitGetUserMedia; | |
| } else if(navigator.mozGetUserMedia) { | |
| navigator.getUserMedia = navigator.mozGetUserMedia; | |
| } |
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(ctx, aspectRatio, width, desiredWidth, height, desiredHeight, minX, minY, refX, refY) { | |
| // aspect ratio - http://www.w3.org/TR/SVG/coords.html#PreserveAspectRatioAttribute | |
| aspectRatio = svg.compressSpaces(aspectRatio); | |
| aspectRatio = aspectRatio.replace(/^defer\s/,''); // ignore defer | |
| var align = aspectRatio.split(' ')[0] || 'xMidYMid'; | |
| var meetOrSlice = aspectRatio.split(' ')[1] || 'meet'; | |
| // calculate scale | |
| var scaleX = width / desiredWidth; | |
| var scaleY = height / desiredHeight; |
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 main | |
| import ( | |
| "fmt" | |
| ) | |
| func main() { | |
| for i := 0; i < 20; i++ { | |
| switch { | |
| case i % 15 == 0: |
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
| class HelloArrayAdapter < Android::Widget::ArrayAdapter | |
| def getView(position, convertView, parent) | |
| textView = Android::Widget::TextView.new(context) | |
| textView.text = self.getItem(position) | |
| layout = Android::Widget::LinearLayout.new(context) | |
| layout.addView(textView, Android::Widget::LinearLayout::LayoutParams.new(Android::View::ViewGroup::LayoutParams::MATCH_PARENT, Android::View::ViewGroup::LayoutParams::WRAP_CONTENT)) | |
| layout | |
| end |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <script> | |
| var move = 200; | |
| window.onload = function() { | |
| var div = document.getElementById("viewport"); | |
| div.addEventListener("click", function(evt) { | |
| var div = document.getElementById("wrapper"); |
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
| 出力 = (入力)^{\frac{1}{γ}} |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="./jquery-2.1.1.min.js"></script> | |
| <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
| <script type="text/javascript"> | |
| function drawGraph(ys) { | |
| //d3.js でグラフを描画する。 | |
| //グラフを描画するSVGを用意 |
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 data = context.getImageData(x, y, width, height); |
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
| describe('app', function() { | |
| describe('initialize', function() { | |
| beforeEach(function() { | |
| spyOn(app, 'onDeviceReady'); | |
| app.initialize(); | |
| helper.trigger(window.document, 'deviceready'); | |
| }); | |
| it('should bind deviceready', function() { | |
| expect(app.onDeviceReady).toHaveBeenCalled(); | |
| }); |