- JSのお勉強ざっくり
- 名刺ジェネレーター
- かんたんなtwitterもどき
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
const compact = v => v.filter((vv, index, array) => (index === array.findIndex((vvAnother) => (JSON.stringify(vv) === JSON.stringify(vvAnother))))) |
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
const questionSlideFactory = new QuestionSlideFactory(); | |
for(var i = 0; i < 3; i++) { | |
$('なんちゃら').html(questionSlideFactory.createQuestionSlide(i)); | |
} | |
function QuestionSlideFactory(){ | |
} | |
QuestionSlideFactory.prototype.createQuestionSlide = function(question_id){ | |
if(question_id === 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
var elList = document.querySelectorAll('.el'); | |
// 全部とじる | |
function allClose() { | |
for(var i, l = elList.length; i < l; i++) { | |
(function(_el) { | |
_el.classList.remove('open'); | |
_el.classList.add('close'); | |
})(elList[i]); | |
} |
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 ahya = function(startDate, endDate) { | |
var start = new Date(startDate); | |
var end = new Date(endDate); | |
var result = []; | |
for(var d = start, i = 0; d < end; d.setDate(d.getDate()+1), i++) { | |
result.push(new Date(d.getTime())); | |
} | |
return result; | |
} |
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 a = [ | |
['Work', 11], | |
['Eat', 2], | |
['Commute', 2], | |
['Watch TV', 2] | |
]; | |
_.map(a, function(o) { | |
return { | |
c:[ |
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
gom 'github.com/aws/aws-sdk-go/aws' | |
gom 'github.com/aws/aws-sdk-go/service/s3' |
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 com.funnythingz.iroiro.domain; | |
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import java.util.ArrayList; | |
public class ColorsFactory { |
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
{ | |
"まとめたち": [ | |
{ | |
"まとめ_id" : "1", | |
"ふぁいるたち" : [ | |
"content://media/external/images/media/1", | |
"content://media/external/images/media/2", | |
"content://media/external/images/media/3" | |
] | |
}, |
% sudo yum install http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
% sudo yum install mysql mysql-devel mysql-server mysql-utilities
NewerOlder