はてなブックマークアプリ

サクサク読めて、
アプリ限定の機能も多数!

アプリで開く

はてなブックマーク

  • はてなブックマークって?
  • アプリ・拡張の紹介
  • ユーザー登録
  • ログイン
  • Hatena

はてなブックマーク

トップへ戻る

  • 総合
    • 人気
    • 新着
    • IT
    • 最新ガジェット
    • 自然科学
    • 経済・金融
    • おもしろ
    • マンガ
    • ゲーム
    • はてなブログ(総合)
  • 一般
    • 人気
    • 新着
    • 社会ニュース
    • 地域
    • 国際
    • 天気
    • グルメ
    • 映画・音楽
    • スポーツ
    • はてな匿名ダイアリー
    • はてなブログ(一般)
  • 世の中
    • 人気
    • 新着
    • 新型コロナウイルス
    • 働き方
    • 生き方
    • 地域
    • 医療・ヘルス
    • 教育
    • はてな匿名ダイアリー
    • はてなブログ(世の中)
  • 政治と経済
    • 人気
    • 新着
    • 政治
    • 経済・金融
    • 企業
    • 仕事・就職
    • マーケット
    • 国際
    • はてなブログ(政治と経済)
  • 暮らし
    • 人気
    • 新着
    • カルチャー・ライフスタイル
    • ファッション
    • 運動・エクササイズ
    • 結婚・子育て
    • 住まい
    • グルメ
    • 相続
    • はてなブログ(暮らし)
    • 掃除・整理整頓
    • 雑貨
    • 買ってよかったもの
    • 旅行
    • アウトドア
    • 趣味
  • 学び
    • 人気
    • 新着
    • 人文科学
    • 社会科学
    • 自然科学
    • 語学
    • ビジネス・経営学
    • デザイン
    • 法律
    • 本・書評
    • 将棋・囲碁
    • はてなブログ(学び)
  • テクノロジー
    • 人気
    • 新着
    • IT
    • セキュリティ技術
    • はてなブログ(テクノロジー)
    • AI・機械学習
    • プログラミング
    • エンジニア
  • おもしろ
    • 人気
    • 新着
    • まとめ
    • ネタ
    • おもしろ
    • これはすごい
    • かわいい
    • 雑学
    • 癒やし
    • はてなブログ(おもしろ)
  • エンタメ
    • 人気
    • 新着
    • スポーツ
    • 映画
    • 音楽
    • アイドル
    • 芸能
    • お笑い
    • サッカー
    • 話題の動画
    • はてなブログ(エンタメ)
  • アニメとゲーム
    • 人気
    • 新着
    • マンガ
    • Webマンガ
    • ゲーム
    • 任天堂
    • PlayStation
    • アニメ
    • バーチャルYouTuber
    • オタクカルチャー
    • はてなブログ(アニメとゲーム)
    • はてなブログ(ゲーム)
  • おすすめ

    参議院選挙2025

『qiita.com』

  • 人気
  • 新着
  • すべて
  • jqコマンドでGeoJSONから特定のプロパティを削除する - Qiita

    5 users

    qiita.com/_shimizu

    { "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 0, 0 ] }, "properties": { "label": "hoge", "name": "hoge", //これ削除したい "address": "tokyo" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 10, 10 ] }, "properties": { "label": "test", "name": "test", //これ削除したい "address": "takasaki" } }, { "type": "Feature", "geom

    • テクノロジー
    • 2017/01/07 04:27
    • node.jsでローカルIPアドレスの取得 - Qiita

      3 users

      qiita.com/_shimizu

      var os = require('os'); console.log(getLocalAddress()); function getLocalAddress() { var ifacesObj = {} ifacesObj.ipv4 = []; ifacesObj.ipv6 = []; var interfaces = os.networkInterfaces(); for (var dev in interfaces) { interfaces[dev].forEach(function(details){ if (!details.internal){ switch(details.family){ case "IPv4": ifacesObj.ipv4.push({name:dev, address:details.address}); break; case "IPv6": i

      • テクノロジー
      • 2016/06/02 12:37
      • node.js
      • Qiita
      • jsonをcsv(カンマ区切り、項目行あり)に変換する - Qiita

        5 users

        qiita.com/_shimizu

        Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

        • テクノロジー
        • 2016/01/21 17:24
        • JavaScript
        • 値が整数かチェックする - Qiita

          5 users

          qiita.com/_shimizu

          Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

          • テクノロジー
          • 2015/07/25 17:13
          • javascript
          • js
          • Tips
          • ブラウザ間のメソッドやプロパティの違いを三項演算子を使って吸収する - Qiita

            3 users

            qiita.com/_shimizu

            Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

            • テクノロジー
            • 2015/04/11 12:47
            • d3.nestを使った配列のグルーピング - Qiita

              11 users

              qiita.com/_shimizu

              var dataSet = [ {"year":2014, "name":"hoge", "group":"A", "count":200}, {"year":2013, "name":"test", "group":"C", "count":110}, {"year":2013, "name":"shimizu", "group":"B", "count":310}, {"year":2014, "name":"suzuki", "group":"A", "count":260}, {"year":2015, "name":"tanaka", "group":"C", "count":180}, {"year":2014, "name":"sato", "group":"B", "count":220}, {"year":2015, "name":"hello", "group":"B"

              • テクノロジー
              • 2015/03/18 10:38
              • javascript
              • 加速度/傾きセンサーの値を取得 - Qiita

                11 users

                qiita.com/_shimizu

                window.addEventListener("devicemotion", function(evt){ //加速度 var x = evt.acceleration.x; var y = evt.acceleration.y; var z = evt.acceleration.z; //傾き var xg = evt.accelerationIncludingGravity.x; var yg = evt.accelerationIncludingGravity.y; var zg = evt.accelerationIncludingGravity.z; //回転値 var a = evt.rotationRate.alpha; //z方向 var b = evt.rotationRate.beta; //x方向 var g = evt.rotationRate.gamma; //

                • テクノロジー
                • 2014/11/18 18:04
                • Javascript
                • 各Web地図サービス、Geo系ライブラリの引数(緯度経度)メモ - Qiita

                  4 users

                  qiita.com/_shimizu

                  Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

                  • テクノロジー
                  • 2014/09/02 12:12
                  • 地図
                  • JavaScript
                  • webサービス
                  • node.js ファイル一覧を取得する - Qiita

                    10 users

                    qiita.com/_shimizu

                    Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

                    • テクノロジー
                    • 2014/04/22 20:38
                    • node.js
                    • node
                    • JavaScript
                    • jQueryで要素名を取得する - Qiita

                      11 users

                      qiita.com/_shimizu

                      console.log( $("#hello").prop("tagName") ); > "INPUT" console.log( $(".hoge").prop("tagName") ); > "INPUT" //先頭しか取れない console.log( $(".hoge").get(0).tagName ); > "INPUT" console.log( $(".hoge").get(1).tagName ); > "SELECT" /* * 下記は、冗長な書き方になっていると指摘いただきました。 * 詳しくはコメント欄を参照ください */ //eachで回す $(".hoge").each(function(){ console.log( $(this).prop("tagName") ); }); > "INPUT" > "SELECT" //mapで集める var tagNa

                      • テクノロジー
                      • 2014/04/04 14:18
                      • jQuery
                      • JavaScript
                      • プログラミング
                      • Javascriptでin_array的なことをするならsomeメソッドが便利 - Qiita

                        5 users

                        qiita.com/_shimizu

                        var tmp = ['test', 'hoge', 'Hello', 'world']; tmp.some(function(v){ return v === 'Hello' }) //-> true tmp.some(function(v){ return v === 'hello' }) //-> false tmp.some(function(v, i, a){ console.log(v) }) ->test ->hoge ->Hello ->world tmp.some(function(v, i, a){ console.log(i) }) ->0 ->1 ->2 ->3 tmp.some(function(v, i, a){ console.log(a) }) ->["test", "hoge", "Hello", "world"] ->["test", "hoge", "

                        • テクノロジー
                        • 2013/12/14 16:22
                        • js
                        • tips
                        • javascript
                        • CSVをパースする - Qiita

                          17 users

                          qiita.com/_shimizu

                          // ネイティブ版 function parseSV(str, delimiter){ if(!delimiter) delimiter = "," return str.split('\n').reduce(function(table,row){ if(!table) return; table.push( row.split(delimiter).map(function(d){ return d.trim() }) //余白削除 ); return table; }, []); } /* ネイティブ版はIE8以下では動かないので * underscore.jsを使う方が良いかも */ function _parseSV(str, delimiter){ if(!delimiter) delimiter = "," return _.reduce(str.split('\n'), f

                          • テクノロジー
                          • 2013/10/12 14:02
                          • csv
                          • JavaScript
                          • tech
                          • js
                          • jQueryでURLをパースする - Qiita

                            7 users

                            qiita.com/_shimizu

                            var url = 'http://www.youtube.com/watch?v=Q16KpquGsIc&gl=JP&hl=ja#comment'; var elm = $('<a>', { href:url } )[0]; console.log(elm.hostname); //->www.youtube.com console.log(elm.pathname); //->/watch console.log(elm.search); //->?v=Q16KpquGsIc&gl=JP&hl=ja console.log(elm.hash); //->#comment

                            • テクノロジー
                            • 2013/08/22 18:45
                            • jquery
                            • JavaScript
                            • node.jsでjsonファイルの読み込み - Qiita

                              6 users

                              qiita.com/_shimizu

                              Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

                              • テクノロジー
                              • 2013/08/02 13:57
                              • node.js
                              • javascript
                              • Qiita
                              • [Javascript] 配列から特定の要素を削除する(訂正有り) - Qiita

                                19 users

                                qiita.com/_shimizu

                                var array1 = [10, 20, 30, 40, 50]; var target = 30; //要素を削除する array1.some(function(v, i){ if (v==target) array1.splice(i,1); }); console.log(array1) //=> [10, 20, 40, 50]; /* * 連想配列から特定の要素を排除したいときにも便利 */ var array2 = [ {id:1, name:"hoge"}, {id:2, name:"test"}, {id:3, name:"hello"}, {id:4, name:"world"}, {id:5, name:"hoge"}, {id:6, name:"test"}, {id:7, name:"hello"} ]; var targetId = 3; array2.some

                                • テクノロジー
                                • 2013/07/12 01:42
                                • javascript
                                • 配列
                                • array
                                • 削除
                                • 便利
                                • D3.js を使ってcsvからテーブルを出力する - Qiita

                                  5 users

                                  qiita.com/_shimizu

                                  var table = d3.select('body').append('table'); //tableタグ追加 var thead = table.append('thead'); //theadタグ追加 var tbody = table.append('tbody'); //tbodyタグ追加 //csv読み込み d3.csv('hoge.csv', function(csv){ var headerKyes = d3.map(csv[0]).keys(); //ヘッダー用にkeyを取得 thead.append('tr') //trタグ追加 .selectAll('th') .data(headerKyes) .enter() .append('th') //thタグ追加 .text(function(key){return key}); tbody.selectAll('tr

                                  • テクノロジー
                                  • 2013/06/28 10:20
                                  • d3.js
                                  • csv
                                  • node.jsでTCP/IPプロクシサーバー - Qiita

                                    3 users

                                    qiita.com/_shimizu

                                    var util = require('util'); var net = require("net"); process.on("uncaughtException", function(e) { console.log(e); }); if (process.argv.length != 5) { console.log("引数が正しく入力されていません:" + " <proxy_port> <target_host> <target_port>"); console.log("example:node tcp_proxy.js 3000 www.google.com 80"); process.exit(); } var proxyPort = process.argv[2]; var targetHost = process.argv[3]; var targetPort = pr

                                    • テクノロジー
                                    • 2013/06/21 15:51
                                    • Node.js
                                    • node.jsでシンプルなwebサーバー - Qiita

                                      6 users

                                      qiita.com/_shimizu

                                      var http = require("http"), url = require("url"), path = require("path"), fs = require("fs"), port = process.argv[2] || 8888; http.createServer(function(request, response) { var Response = { "200":function(file, filename){ var extname = path.extname(filename); var header = { "Access-Control-Allow-Origin":"*", "Pragma": "no-cache", "Cache-Control" : "no-cache" } response.writeHead(200, header); res

                                      • テクノロジー
                                      • 2013/06/14 10:57
                                      • node.js
                                      • javascriptでゼロ埋め - Qiita

                                        4 users

                                        qiita.com/_shimizu

                                        Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

                                        • テクノロジー
                                        • 2013/05/29 16:51
                                        • js
                                        • JavaScript
                                        • Javascriptでヒアドキュメント - Qiita

                                          91 users

                                          qiita.com/_shimizu

                                          <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script> <style> .title{ width:100%; height:240px; line-height:240px; text-align:center; background:#ccc; } </style> <body> <script> //ヒアドキュメント var heredoc = (function () {/* <div class="title"> <h1> <a href="$

                                          • テクノロジー
                                          • 2013/05/17 11:03
                                          • javascript
                                          • ヒアドキュメント
                                          • tips
                                          • *javascript
                                          • jquery
                                          • web制作
                                          • Programming
                                          • npmでnode.jsのアップグレード - Qiita

                                            10 users

                                            qiita.com/_shimizu

                                            Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

                                            • テクノロジー
                                            • 2013/05/09 05:28
                                            • Node.js
                                            • 'input type=file'から'canvas'への転写 - Qiita

                                              5 users

                                              qiita.com/_shimizu

                                              <canvas id="canvas" ></canvas> <input id="uploadFile" name="image" type="file" /> <script> // forked from _shimizu's "input type=file → canvas" http://jsdo.it/_shimizu/5KO3 $("#uploadFile").change(function() { var file = this.files[0]; if (!file.type.match(/^image\/(png|jpeg|gif)$/)) return; var image = new Image(); var reader = new FileReader(); reader.onload = function(evt) { image.onload = func

                                              • テクノロジー
                                              • 2012/09/28 22:49
                                              • JavaScript
                                              • tips
                                              • setIntervalでforeach - Qiita

                                                3 users

                                                qiita.com/_shimizu

                                                Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

                                                • テクノロジー
                                                • 2012/09/21 03:45
                                                • qiita
                                                • javascript
                                                • *あとで読む

                                                このページはまだ
                                                ブックマークされていません

                                                このページを最初にブックマークしてみませんか?

                                                『qiita.com』の新着エントリーを見る

                                                キーボードショートカット一覧

                                                j次のブックマーク

                                                k前のブックマーク

                                                lあとで読む

                                                eコメント一覧を開く

                                                oページを開く

                                                はてなブックマーク

                                                • 総合
                                                • 一般
                                                • 世の中
                                                • 政治と経済
                                                • 暮らし
                                                • 学び
                                                • テクノロジー
                                                • エンタメ
                                                • アニメとゲーム
                                                • おもしろ
                                                • アプリ・拡張機能
                                                • 開発ブログ
                                                • ヘルプ
                                                • お問い合わせ
                                                • ガイドライン
                                                • 利用規約
                                                • プライバシーポリシー
                                                • 利用者情報の外部送信について
                                                • ガイドライン
                                                • 利用規約
                                                • プライバシーポリシー
                                                • 利用者情報の外部送信について

                                                公式Twitter

                                                • 公式アカウント
                                                • ホットエントリー

                                                はてなのサービス

                                                • はてなブログ
                                                • はてなブログPro
                                                • 人力検索はてな
                                                • はてなブログ タグ
                                                • はてなニュース
                                                • ソレドコ
                                                • App Storeからダウンロード
                                                • Google Playで手に入れよう
                                                Copyright © 2005-2025 Hatena. All Rights Reserved.
                                                設定を変更しましたx