Skip to content

Instantly share code, notes, and snippets.

View ufon's full-sized avatar
🚀
Focusing

Anton Postoyalko ufon

🚀
Focusing
View GitHub Profile
@ufon
ufon / index.html
Created January 11, 2017 16:28
shortest html5 document
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>blah</title>
</head>
<body>
<p>I'm the content</p>
</body>
</html>
file_frame = myGlobalFrame = new wp.media.view.MediaFrame.Select(
{
title: '<?php _e( "Choose an image", "woocommerce" ); ?>',
button: {
text: '<?php _e( "Use image", "woocommerce" ); ?>'
},
state : 'library',
states : [
//library
new wp.media.controller.Library({
@ufon
ufon / enzyme_render_diffs.md
Created January 29, 2019 13:53 — forked from fokusferit/enzyme_render_diffs.md
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render