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
| import numpy as np | |
| from chainer import optimizers, FunctionSet, Variable | |
| import chainer.functions as F | |
| import random | |
| import copy | |
| model = FunctionSet( | |
| l1 = F.Linear(30, 10) | |
| ) | |
| optimizer = optimizers.Adam() |
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 tabToUrl = {}; | |
| chrome.tabs.onCreated.addListener( | |
| function(tab) { | |
| console.log("create "+tab.url); | |
| } | |
| ); | |
| chrome.tabs.onUpdated.addListener( | |
| function(tabId, changeInfo, tab) { |
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
| public class UrlImageView extends ImageView { | |
| private static final String LOG_TAG = "View"; | |
| private Map<String, Bitmap> bitmapStore; | |
| private String url; | |
| public UrlImageView(Context context) { | |
| super(context); | |
| bitmapStore = new HashMap<String, Bitmap>(); |
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
| javascript:(function(){setTimeout(function(e){e=document.getElementsByTagName('span');for(var i=e.length-1;i>=0;--i){if(e[i].getAttribute('class')=='with-icn'){e[i].style.visibility='hidden';e[i].style.position='absolute';}}}, 100);})(); |
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
| javascript:(function(p,r){p=yt.getConfig('PLAYER_REFERENCE');var i=-1;r=function(s){if(s==0){p.loadVideoById((function(){var b=document.getElementById('watch-related').getElementsByTagName('button');if(++i>0){b[i-1].parentNode.parentNode.style.backgroundColor='transparent';}i=i%b.length;b[i].parentNode.parentNode.style.backgroundColor='#ffff00';return b[i%b.length].getAttribute('data-video-ids');})());}};p.addEventListener('onStateChange',r);try{document.getElementById('watch-headline-user-info').innerHTML+='[play_related]'}catch(e){}})(); |
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 type="text/javascript" src="../js/swfobject.js"></script> | |
| <script type="text/javascript" src="../js/myplayer.js"></script> | |
| </head> | |
| <body> | |
| <input type="textarea" onkeypress="pressEnter(event.keyCode, this.value);"></input> | |
| <div id="myplayer"></div> | |
| <script type="text/javascript"> | |
| <!-- |