Posts

  • How to become a GOOD Theoretical Physicist

  • Table of Contents 1 Languages 2 Primary Mathematics 3 Classical Mechanics 4 Optics 5 Statistical Mechanics and Thermodynamics 6 Electronics 7 Electromagnetism 8 Computational Physics 9 Quantum Mechanics (Non-relativistic) 10 Atoms and Molecules 11 Solid State Physics 12 Nuclear Physics 13 Plasma Physics 14 Advanced Mathematics 15 Special Relativity 16 Advanced Quantum Mechanics 17 Phenomenology 18 General Relativity 19 Cosmology 20 Astro-Physics and Astronomy 21 Quantum Field Theory 22 Supersymmetry and Supergravity 23 Astro Particle Physics... Read more
  • Interview Python

  • Table of Contents Python语言特性 1 Python的函数参数传递 2 Python中的元类(metaclass) 3 @staticmethod和@classmethod 4 类变量和实例变量 5 Python自省 6 字典推导式 7 Python中单下划线和双下划线 8 字符串格式化:%和.format 9 迭代器和生成器 10 *args and **kwargs 11 面向切面编程AOP和装饰器 12 鸭子类型 13 Python中重载 14 新式类和旧式类 15 __new__和__init__的区别 16 单例模式 1 使用__new__方法 2 共享属性 3 装饰器版本 4 import方法 17 Python中的作用域 18 GIL线程全局锁 19 协程 20 闭包 21 lambda函数 22 Python函数式编程... Read more
  • Pure CSS read more toggle

  • Preview Lorem ipsum dolor sit amet, consectetur adipisicing elit. Libero fuga facilis vel consectetur quos sapiente deleniti eveniet dolores tempore eos deserunt... Read more
  • How to set the read more feature in the content

  • Preview ... Read more Code <p> word word word <div id = "more_content"> <a onclick = "show_more_content()"> Read more </a> </div></p> <script> function show_more_content(){ document.getElementById('more_content').innerHTML = additional_content; } </script> Preview The following two divs contains a long text that will not fit in the box. As you... Read more
  • Embedding PDFs without JavaScript

  • PDFs can be embedded into HTML pages without JavaScript. Below are four examples of the most common techniques. Note: these examples work in all modern desktop browsers, but results will vary in older desktop browsers and mobile browsers. As of iOS 9, none of these examples work properly in Safari for iOS. <object> Using an <object> enables you to leave fallback content if the browser doesn’t support PDF embedding. PDF Preview Example fallback content: This browser does not support PDFs. Please download the PDF to view it: Download... Read more