Coder Social home page Coder Social logo

245cloud's People

Contributors

dependabot[bot] avatar dkatsura avatar fukajun avatar harada4atsushi avatar kakakakakku avatar kobake avatar konyu avatar pandeiro245 avatar tkrkt avatar zu-min avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

245cloud's Issues

SoundCloudの音量調節

SoundCloudの音量調節をさっくり書いてみました。
245CloudでSoundCloud再生中に以下のスクリプトをコンソールにぶち込んだら、
プレーヤーの上にボリュームスライダーが挿入される、はず。

実際に入れるならもうちょいきれいに書けるかと。
ちなみにプルリクは良く知らないんで勉強中...

//SoundCloud APIをインジェクション
function injectAPI(loadHandler){
  if(window.SC){
    loadHandler();
  } else {
    $('<script>')
      .attr('src', 'https://w.soundcloud.com/player/api.js')
      .appendTo(window.document.head);
      //.on('load', loadHandler); //does not work
    checkLoaded(loadHandler);
  }
}

//onloadがうまく動かないかもなので、ごりっと監視
function checkLoaded(loadHandler){
  setTimeout(function(){
    if(window.SC){
      loadHandler();
    } else {
      checkLoaded(loadHandler);
    }
  }, 100);
}

//SoundCloudのiframeを探す
function findSoundCloudPlayer(){
  var player = null;
  $('iframe').each(function(){
    var src = $(this).attr('src');
    if(src.indexOf('https://w.soundcloud.com/player') === 0){
      player = $(this)[0];
    }
  });
  return player;
}

//ボリュームバーを作成
function createVolumeBar(playerElement){
  var player = SC.Widget(playerElement);
  var input = $('<input>').attr({
    type: 'range',
    min: 0,
    max: 100,
    value: 100
  }).on('change', function(){
    player.setVolume($(this).val() / 100);
  });

  player.getVolume(function(volume){
    input.val(volume * 100);
  });

  return input;
}

//245クラウドにボリュームバー挿入
function insertTo245Cloud(input, player){
  input.insertBefore(player).wrap(
    $('<label>')
      .text('Volume')
      .css({
        'float': 'right',
        'margin-right': '2%',
        'width': '10%'
      })
  );
}

injectAPI(function(){
  var player = findSoundCloudPlayer();
  if(player){
    var input = createVolumeBar(player);
    insertTo245Cloud(input, player);
  }
});

Mithril.js化

ステータス TODO 消費ポモ数
icon_urlカラムが空の場合はその場で取得して保存する 2
5分休憩時の部屋切り替え 3
未読数ロジック再実装 1
PLAYING、CHATTINGがカウントダウンにならない 正:image 誤:image 0
httpからはじまるリンクがaタグにならない image 0

timecrowd連携

https://timecrowd.net/apidoc

TODO

  • omniauth-timecrowdでログイン
  • 直近のタスク10件取得
  • ポモstart時にtimecrowd稼働していなければ選択されたtimecrowdタスクを開始
  • ポモcomplete時にtimecrowd稼働してれば稼働中timecrowdタスクを停止
  • TimeCrowdのtokenをcookiesに保存

TODO機能

  • それぞれのTODOに対して何ポモかかるか見積れる
  • 上記と1日あたりの平均ポモ数を計算してpivotal trackerみたいに自動的に未来スケジュールが組まれる
  • 実際のポモ(Workloadモデル)とTODOをhas_manyで紐付ける
  • はらぱんさんとペアプロする日程を調整する

ニコニコ動画対応

#56 (comment)
にて @tkrkt さんが神対応してくれたものの、
ちょうどnodeからRails変わるタイミングにぶつかってしまいマージならず。
しかし、またリトライしたいです… |ω・`)チラ

ニコニコ動画confirmキャンセル時の動作

再生する曲がニコニコ動画だった場合に出るconfirmでキャンセルすると
リロードされる挙動はreturnで返す挙動にするのはいかがでしょうか?
「アーティストや曲名」を入力していた場合、再入力が必要になるためです。

GyazoGIF

Milkcocoaベータ版移行

TODO

https://github.com/milk-cocoa/document/wiki/%CE%B2%E7%89%88%E3%81%A8%E3%81%AE%E9%81%95%E3%81%84%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6

  • スクリプトタグ書き換え
  • オブジェクトのインスタンス化方法変更
  • Query実行方法の変更

メール

※Milkcocoaへ登録して頂いた方にメールをお送りしています。

いつもMilkcocoaをご利用頂き、ありがとうございます。
ベータ版終了まで残り2日となりました。30日以降はベータ版のアプリケーションは動かなくなります。ご了承ください。
お手数をおかけしますが、以下のリンクを参考にし移行をお願いします。


β版との違いについて:https://github.com/milk-cocoa/document/wiki/%CE%B2%E7%89%88%E3%81%A8%E3%81%AE%E9%81%95%E3%81%84%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6


またデータの移行については、以下のデータ移行用のスクリプトをご利用ください。


http://syuhei176.github.io/moving-data-milkcocoa/


※データ移行の際はこちらのスクリプトをご利用ください。今回のリニューアルに伴い、Milkcocoaのデータフォーマットを変更しています。一部の機能をご利用の方は、正しく移行できないケースがございますが、ご了承ください。

今後ともMilkcocoaをよろしくお願いします。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.