Skip to content

Instantly share code, notes, and snippets.

View tehillim's full-sized avatar
๐Ÿ’ญ
I may be slow to respond.

Jewon Bong tehillim

๐Ÿ’ญ
I may be slow to respond.
View GitHub Profile
// ์ด๊ฒƒ๋งŒ ๊ธฐ์–ตํ•˜์ž
// @State
// $
@State private var name = ""
$name
//
// ContentView.swift
// StateBindingExample
//
// Created by Jรจwon Bong on 2020/07/01.
// Copyright ยฉ 2020 Appetizer. All rights reserved.
//
import SwiftUI
@tehillim
tehillim / onAppear.swift
Created June 18, 2020 03:26
SwiftUI์—์„œ view ๊ฐ€ ์‹œ์ž‘๋ ๋•Œ ํ•จ์ˆ˜ ํ˜ธ์ถœํ•˜๋Š” ๋ฐฉ๋ฒ•
Text(String(post.content?.rendered ?? "Loading.."))
.padding(.all)
.multilineTextAlignment(.leading)
.onAppear(){
print("appeared")
}
@tehillim
tehillim / HTMLView.swift
Created June 17, 2020 06:20
SwiftUI ์—์„œ HTML์„ ๋ณด์—ฌ์ฃผ๋Š” view๋ฅผ ๊ฐ„๋žตํžˆ ๋งŒ๋“ค์–ด ๋ณด์•˜์Šต๋‹ˆ๋‹ค.
//
// HTMLView.swift
//
// Created by Jรจwon Bong on 2020/06/17.
// Copyright ยฉ 2020 Appetizer. All rights reserved.
//
import SwiftUI
import WebKit
@tehillim
tehillim / wordpress excerpt customizing.php
Created September 19, 2018 01:18
wordpress trim youtube embed code ์›Œ๋“œํ”„๋ ˆ์Šค์—์„œ ์ž„๋ฒ ๋“œ๋œ ์œ ํŠœ๋ธŒ ๋งํฌ ์—†์• ๊ณ , excerpt ํฌ๊ธฐ ์กฐ์ ˆํ•˜๊ธฐ.
<?php
echo wp_trim_words( preg_replace('/^https?:\/\/(?:www\.)?youtu\.be\/*[a-zA-Z0-9_-]*/','',get_the_content()), 20 );
?>
@tehillim
tehillim / owldotshowing.html
Last active May 17, 2017 01:58
์ฝ”๋“œ๊ฐ€ ๋งค์šฐ ์‹ฌํ”Œํ•˜๊ณ , ๋ชจ๋ฐ”์ผ ์†Œ๊ฐœ ํŽ˜์ด์ง€๋กœ ์“ฐ๊ธฐ์— ๊ดœ์ฐฎ์€ jquery ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋กœ owl carousel์ด ์žˆ๋Š”๋ฐ, ์ฒ˜์Œ owl carousel ์„ ์‚ฌ์šฉํ•˜๋‹ค๋ณด๋ฉด, ํ•˜๋‹จ์— dots ๊ฐ€ ๋‚˜์˜ค์ง€ ์•Š๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋‹ค. ๊ทธ๊ฑด ๋ฒ„๊ทธ๊ฐ€ ์•„๋‹ˆ๋ผ, ์„ค๋ช…์„œdocs์— ์ œ๋Œ€๋กœ ๋ช…๊ธฐ๋ฅผ ํ•˜์ง€ ์•Š์•˜๊ธฐ ๋•Œ๋ฌธ์ธ๋ฐ.. ์„ค๋ช…์„œ ์—…๋ฐ์ดํŠธ ๋˜๊ธธ~ jquery ๋ฒ„์ „ ๋ฌธ์ œ๋‚˜ option ๋ฌธ์ œ๊ฐ€ ์•„๋‹ˆ๋ผ, theme์— ๋Œ€ํ•œ ๋ฌธ์ œ์ด๋‹ค.. dots ๋Š” ๊ธฐ๋ณธ๊ฐ’์ด true์ด๋‹ค. ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์€ ๊ฐ„๋‹จํ•˜๋‹ค. owl.theme.default.min.css ๋ฅผ index์— ํฌํ•จ์‹œํ‚ด class์— owl-theme์„ ํฌํ•จ์‹œํ‚ด Thatโ€™s it. http://webstory.posโ€ฆ
:
<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>
@tehillim
tehillim / webkitappearance.css
Created August 25, 2016 03:41
์ธํ’‹๋ฐ•์Šค๋‚˜ ๋ฒ„ํŠผ์—์„œ ์›นํ‚ท ๊ธฐ๋ณธ ์†์„ฑ์„ ์ œ๊ฑฐํ•œํ›„, ์›ํ•˜๋Š” ์Šคํƒ€์ผ์„ ์ž…ํ˜€๋ณด์„ธ์š”. ํ›จ์”ฌ ์‹œ๊ฐ„์ด ๋‹จ์ถ•๋ฉ๋‹ˆ๋‹ค.
.something {
-webkit-appearance: none;
}
@tehillim
tehillim / removerightnow.php
Last active August 3, 2016 16:50
์›Œ๋“œํ”„๋ ˆ์Šค ๋Œ€์‰ฌ๋ณด๋“œ(์•Œ๋ฆผํŒ)์—์„œ ์‚ฌ์ดํŠธ ํ˜„ํ™ฉํŒ ์—†์• ๋Š” ๋ฐฉ๋ฒ•
function remove_dashboard_widgets() {
remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' ); // Right Now
}
add_action('wp_dashboard_setup', 'remove_dashboard_widgets');
@tehillim
tehillim / ionic-android-back.js
Created February 3, 2016 15:48
์•„์ด์˜ค๋‹‰ ์•ˆ๋“œ๋กœ์ด๋“œ Back๋ฒ„ํŠผ ์•ฑ ์ข…๋ฃŒ ํ™•์ธ ๋‹ค์ด์–ผ๋กœ๊ทธ ๋„์šฐ๊ธฐ
.run(function($ionicPlatform, $ionicPopup) {
$ionicPlatform.registerBackButtonAction(function(event) {
if (true) {
$ionicPopup.confirm({
title: '์ข…๋ฃŒํ™•์ธ',
template: '์•ฑ์„ ์ข…๋ฃŒํ• ๊นŒ์š”?'
}).then(function(res) {
if (res) {
ionic.Platform.exitApp();
@tehillim
tehillim / vertical-middle.html
Created July 30, 2015 06:03
์ดˆ๊ฐ„๋‹จ ์„ธ๋กœ ์ •๋ ฌ, css ์ƒํ•˜ ์ค‘๊ฐ„์— ๊ธ€์”จ ๋งž์ถ”๊ธฐ, ์–ด๋ ต๊ฒŒ ์ƒ๊ฐํ•˜์ง€ ๋ง๊ณ , table์†์„ฑ์„ ์ด์šฉํ•ด๋ณด์ž.
<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;
}