Skip to content

Instantly share code, notes, and snippets.

View oracle-drop-all-objects-in-schema
BEGIN
FOR cur_rec IN (SELECT object_name, object_type
FROM user_objects
WHERE object_type IN
('TABLE',
'VIEW',
'PACKAGE',
'PROCEDURE',
'FUNCTION',
'SEQUENCE',
@rafaeleyng
rafaeleyng / Vagrantfile
Last active Mar 30, 2019
Vagrant ssh key provisioning
View Vagrantfile
Vagrant.configure(2) do |config|
config.vm.box = "..."
# provisioning
config.vm.provision "file", source: "~/.ssh/id_rsa.pub", destination: "~/.ssh/id_rsa.pub"
config.vm.provision "shell", inline: "cat ~vagrant/.ssh/id_rsa.pub >> ~vagrant/.ssh/authorized_keys"
end
View inner.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="inner.js"></script>
</head>
<body>
</body>
</html>
@rafaeleyng
rafaeleyng / what-forces-layout.md
Last active Sep 20, 2015 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.
View what-forces-layout.md

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout. This is also called reflow or layout thrashing, and is common performance bottleneck.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()
View ch-functional-programming-data.js
var orders = [
{
number: 1,
customer: 1,
finished: false,
items: [
{
product: 143,
value: 9.9,
quantity: 5
You can’t perform that action at this time.