This file contains 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
/* GR-SAKURA Sketch Template V2.03 */ | |
#include <Arduino.h> | |
#define INTERVAL 100 | |
const int analogInPin = A0; // Analog input pin that the potentiometer is attached to | |
int ans ; | |
void setup() | |
{ | |
pinMode(PIN_LED0,OUTPUT); |
This file contains 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 catch_post_image() { | |
global $post; | |
$first_img = ''; | |
preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches); | |
if (isset($matches[1])) { | |
$first_img = $matches[1][0]; | |
} |
This file contains 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 lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>TypeSquareSample</title> | |
<script type="text/javascript" src="//typesquare.com/accessor/script/typesquare.js?NZ3DSAQ8E7o%3D" charset="utf-8"></script> | |
<style> | |
body { | |
font-size: 3em; | |
} |
This file contains 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($) { | |
'use strict'; | |
$.fn.stickeyMenu = function(options) { | |
var $this = $(this); | |
var defaultSetting = { | |
startTop : 0 , | |
stopTop : 0 , | |
zIndex : 10 | |
} |
This file contains 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
window.addEventListener('load',function(){ | |
if(window.location.pathname === '/ajax/stream/inline.php') { | |
window.location = 'https://www.facebook.com/'; | |
} | |
// 誕生日の友達がいる | |
var _birthdayLink = document.getElementById('birthday_reminders_link'); | |
if (_birthdayLink) { | |
// クリックイベントを発火 | |
_birthdayLink.click(); | |
var _form = document.getElementsByClassName('uiStreamInlineAction'); |
This file contains 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
{ | |
"manifest_version": 2, | |
"name": "AutoCongrats", | |
"description": "ウェブ上の祝いなんてもんはただの文字列だ", | |
"version": "1.0", | |
"content_scripts": [ { | |
"all_frames": false, | |
"js": [ "js/background.js" ], | |
"matches": [ "http://www.facebook.com/*", "https://www.facebook.com/*"], | |
"run_at": "document_start" |
This file contains 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
<tr> | |
<td class="lsf symbol">table</td> | |
<td class="ligature">table, cell</td> | |
</tr> |
This file contains 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
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$.noConflict(); | |
jQuery(document).ready(function(){ | |
(function($){ | |
// $('<ul></ul>') と同義だけども、左記の書き方をするとWPが勝手に閉じタグを入れるのでNG | |
var $_ul = $(document.createElement("ul")); | |
// 記事IDで選択スコープを絞ってね | |
$("#post-2420 h2, #post-2420 h3").each(function(){ | |
var $_h = $(this); |
This file contains 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
for(var i=1; i<5; i++) { | |
console.log(i); | |
debugger | |
} |
This file contains 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
<style type="text/css"> | |
h1 ~ p { | |
color : red; | |
} | |
</style> | |
<section> | |
<p>ほげほげ</p> | |
<h1>タイトル</h1> | |
<p>ここにヒットする</p> | |
</section> |
NewerOlder