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 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); | |
} |
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
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(() => |
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
* { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
} | |
body { | |
background: black; | |
color: white; | |
font: 20px "PixelMplus12"; |
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
* { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
} | |
body { | |
font-face: "スマートフォントUI" sans-serif; | |
} | |
@mixin transitions { | |
-webkit-transition: 0.2s; |
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
mail.Attachments.Any(); | |
mail.Attachments.Length > 0; | |
mail.Attachments.Length != 0; | |
mail.Attachments.Count() > 0; | |
mail.Attachments.Count() != 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
// メールをHTML表示させる | |
private void ShowHtmlMail(nMail.Attach attach) | |
{ | |
// 本文表示用のテキストボックスの表示を非表示にしてHTML表示用のWebBrowserを表示する | |
this.textBody.Visible = false; | |
this.browserBody.Visible = true; | |
} | |
// メールを表示させる | |
private void ShowMail(nMail.Attach attach) |
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
// なんだこのメソッド | |
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; | |
} |
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
/// <summary> | |
/// 指定されたメールを開く | |
/// </summary> | |
/// <param name="mail">メール</param> | |
private void OpenMail(Mail mail) | |
{ | |
Icon appIcon; | |
ResetAttachMenu(); |
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
# これだと#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 } |
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
<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> |
NewerOlder