Skip to content

Instantly share code, notes, and snippets.

View yuxxxx's full-sized avatar
🗻
I've got an Fuji disease.

ゆうなんとか yuxxxx

🗻
I've got an Fuji disease.
  • Avanade Japan
  • Japan
View GitHub Profile
@yuxxxx
yuxxxx / notifyToIFTTT.js
Created January 22, 2019 14:04
IFTTTに投稿するやつ for GAS
function notifyToIFTTT(event, appKey, payload) {
var options =
{
"method" : "post",
'contentType': 'application/json',
'payload' : JSON.stringify(payload)
};
UrlFetchApp.fetch("https://maker.ifttt.com/trigger/"+event+"/with/key/"+ appKey, options);
}
@yuxxxx
yuxxxx / favorites.spec.ts
Created June 21, 2018 05:50
Jest testing
import { FavoritesProvider } from './favorites';
import { TestBed, ComponentFixture } from '@angular/core/testing';
import { IonicStorageModule } from '@ionic/storage';
import { IonicModule } from 'ionic-angular/umd';
import { HttpClientModule } from '@angular/common/http';
import { BrowserModule } from '@angular/platform-browser';
import { MyApp } from '../../app/app.component';
describe('FavoritesProvider', () => {
beforeEach(() =>
@yuxxxx
yuxxxx / jsdoit.css
Last active August 29, 2015 14:06
2014-09-05 10th
* {
margin: 0;
padding: 0;
border: 0;
}
body {
background: black;
color: white;
font: 20px "PixelMplus12";
@yuxxxx
yuxxxx / jsdoit.css
Created June 8, 2014 01:13
2014-06-08 2nd
* {
margin: 0;
padding: 0;
border: 0;
}
body {
font-face: "スマートフォントUI" sans-serif;
}
@mixin transitions {
-webkit-transition: 0.2s;
mail.Attachments.Any();
mail.Attachments.Length > 0;
mail.Attachments.Length != 0;
mail.Attachments.Count() > 0;
mail.Attachments.Count() != 0;
// メールをHTML表示させる
private void ShowHtmlMail(nMail.Attach attach)
{
// 本文表示用のテキストボックスの表示を非表示にしてHTML表示用のWebBrowserを表示する
this.textBody.Visible = false;
this.browserBody.Visible = true;
}
// メールを表示させる
private void ShowMail(nMail.Attach attach)
// なんだこのメソッド
private void Form_Resize(object sender, EventArgs e)
{
textA.Width = this.Width - 85;
textB.Width = this.Width - 85;
textC.Width = this.Width - 85;
textD.Width = this.Width - 85;
}
@yuxxxx
yuxxxx / OpenMail.cs
Last active August 29, 2015 13:56 — forked from hijirichan/OpenMail.cs
/// <summary>
/// 指定されたメールを開く
/// </summary>
/// <param name="mail">メール</param>
private void OpenMail(Mail mail)
{
Icon appIcon;
ResetAttachMenu();
@yuxxxx
yuxxxx / horror.rb
Created February 10, 2014 03:11
順番がかわらない怪現象.rb
# これだと#6と#5の位置がおもったとおりにならない
# #5 #6になる
[1, 4, 6, 5, 2, 3].each_slice(2) do |ids|
items = Item.where(id: ids)
hogehoge items
end
#こうするとおもったとおり
[1, 4, 6, 5, 2, 3].each_slice(2) do |ids|
items = ids.to_a.map{|i| Item.find_by_id i }
@yuxxxx
yuxxxx / jsdoit.html
Last active August 29, 2015 13:55
例のサイトのヘッダーがずれてるのがすごく気になって作った
<div id="title_area">Tiele</div>
<div class="content">
<div class="row">
<div class="col-sm-4">
<p class="header"><span id="helloWorld"></span></p>
</div>
<div class="col-sm-6">
<p class="header">tasty</p>
<i id="information">▶INFORMATION</i>