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
// 이것만 기억하자 | |
// @State | |
// $ | |
@State private var name = "" | |
$name |
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
// | |
// ContentView.swift | |
// StateBindingExample | |
// | |
// Created by Jèwon Bong on 2020/07/01. | |
// Copyright © 2020 Appetizer. All rights reserved. | |
// | |
import SwiftUI |
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
Text(String(post.content?.rendered ?? "Loading..")) | |
.padding(.all) | |
.multilineTextAlignment(.leading) | |
.onAppear(){ | |
print("appeared") | |
} |
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
// | |
// HTMLView.swift | |
// | |
// Created by Jèwon Bong on 2020/06/17. | |
// Copyright © 2020 Appetizer. All rights reserved. | |
// | |
import SwiftUI | |
import WebKit |
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
<?php | |
echo wp_trim_words( preg_replace('/^https?:\/\/(?:www\.)?youtu\.be\/*[a-zA-Z0-9_-]*/','',get_the_content()), 20 ); | |
?> |
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
: | |
<link rel="stylesheet" href="owl/assets/owl.theme.default.min.css"> | |
: | |
<div class="owl-carousel owl-theme"> | |
<div>content1</div> | |
<div>content2</div> | |
<div>content3</div> |
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
.something { | |
-webkit-appearance: none; | |
} |
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 remove_dashboard_widgets() { | |
remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' ); // Right Now | |
} | |
add_action('wp_dashboard_setup', 'remove_dashboard_widgets'); |
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
.run(function($ionicPlatform, $ionicPopup) { | |
$ionicPlatform.registerBackButtonAction(function(event) { | |
if (true) { | |
$ionicPopup.confirm({ | |
title: '종료확인', | |
template: '앱을 종료할까요?' | |
}).then(function(res) { | |
if (res) { | |
ionic.Platform.exitApp(); |
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 class="arr"><div class="v">a</div></div> | |
<div class="arr"><div class="v">b</div></div> | |
<div class="arr"><div class="v">c</div></div> | |
<style> | |
div { | |
background: gray; | |
height: 200px; | |
width: 200px; | |
} |
NewerOlder