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 / fail
Created June 14, 2014 08:52
Execution engine fail
ID: 218
Address: http://api.biodtlab.com/execution-engine-ws/rest/workflow/start
Encoding: ISO-8859-1
Http-Method: POST
Content-Type: application/xml
Headers: {Accept=[*/*; q=0.5, application/xml], accept-encoding=[gzip, deflate], connection=[close], Content-Length=[455], content-type=[application/xml], host=[api.biodtlab.com], user-agent=[Ruby], x-biodt-authtoken=[c7c20a0c-f281-45f9-9812-5e6889c379d7], x-forwarded-for=[192.168.0.169], x-forwarded-proto=[https], x-real-ip=[192.168.0.169]}
Payload: <?xml version="1.0"?>
<LaunchWorkflowRequest>
<user>doina</user>
<inputs>

Keybase proof

I hereby claim:

  • I am alisnic on github.
  • I am andrei (https://keybase.io/andrei) on keybase.
  • I have a public key whose fingerprint is D8F0 A38C 42E0 85F2 8C0D 1435 A4FF 2FF5 3D30 870D

To claim this, I am signing this object:

@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];