Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<body>
<iframe width="560" height="315" src="https://www.youtube.com/embed/C0DPdy98e4c" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen name="test_iframe"></iframe>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<frameset cols="50%,*">
<frame src="https://www.youtube.com/embed/C0DPdy98e4c" name="frame1">
<frame src="https://www.youtube.com/embed/C0DPdy98e4c" name="frame2">
</frameset>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Page title</title>
</head>
<body>
<div id="list">
<div class="card">
<h1>Title</h1>
<p>very, very, very long description</p>
<!DOCTYPE html>
<html>
<head>
<title>Page title</title>
</head>
<body>
<h1>My heading</h1>
<p>My first paragraph</p>
<html>
<head>
</head>
<body>
<script type="text/javascript">
window.addEventListener("message", function(event) {
console.log(JSON.parse(event.data))
}
)
console.log("subscribed to saltedge connect notification")
# test.rb
module Guardian
def self.ensure_method_called!(location)
unless caller.any? {|line| line.include?(location)}
raise ArgumentError.new("nice try lol")
end
end
def self.ensure_instance_method_called!(klass, method_name)
@alisnic
alisnic / ImageMagick 6.7.7-10 Homebrew Formula.md
Last active January 16, 2017 03:00 — forked from rochoa/ImageMagick 6.7.7-10 Homebrew Formula.md
Homebrew Formula for ImageMagick 6.7.7-10

Homebrew Formula patching old ImageMagick release 6.7.7-10

Install

$ brew install https://gist.githubusercontent.com/rochoa/10017167/raw/f4f09fd9f9441513d06092c881e10935735881e2/imagemagick.rb

Tested

@alisnic
alisnic / task.h
Created December 9, 2012 16:52
the Task data structure definition
#define TASK_STACK_SIZE 512
typedef enum {
TS_RUNNABLE = 1, TS_BLOCKED = 2, TS_ZOMBIE = 3
} task_status_t;
typedef struct {
jmp_buf state;
task_status_t status;
unsigned char stack[TASK_STACK_SIZE];
@alisnic
alisnic / method_patterns.rb
Created November 28, 2012 17:05
ruby method patterns
# Usage
# class Foo
# include MethodPatterns
#
# defp :greet, check(:nil?) do |obj|
# p 'HA! NIL!'
# end
#
# defp :greet, match_any do |obj|
# p 'Hey, Object!'
global setjmp
setjmp:
push ebx
mov ebx,[8 + esp]
mov [0 + ebx],edi ; buf->edi == 0(ebx) == EDI
mov [4 + ebx],esi ; buf->esi == 4(ebx) == ESI
mov [8 + ebx],ebp ; buf->ebp == 8(ebx) == EBP