A notation for diagramming signals.
A line signifies time.
──────────────────────────>
| require 'victor' | |
| require 'perlin_noise' | |
| $width = 279 | |
| $height = 356 | |
| $pen_width = 0.8 | |
| $margin_left = 10 | |
| $margin_right = 10 |
| require 'victor' | |
| require 'perlin_noise' | |
| $width = 210 | |
| $height = 297 | |
| # $width = 279 | |
| # $height = 356 | |
| $pen_width = 0.8 |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <!-- Required meta tags --> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
| <!-- Bootstrap CSS --> | |
| <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> |
| #include "scheme.h" | |
| #include "base.c" | |
| static int run(Scheme_Env* e, int argc, char* argv[]) { | |
| scheme_env = e; | |
| declare_modules(e); | |
| scheme_namespace_require(scheme_intern_symbol("racket/base")); |
| pragma solidity ^0.4.0; | |
| /** | |
| * @title Ownable | |
| * @dev The Ownable contract has an owner address, and provides basic authorization control | |
| * functions, this simplifies the implementation of "user permissions". | |
| */ | |
| contract Ownable { | |
| address public owner; |
| // Playground - noun: a place where people can play | |
| import UIKit | |
| import QuartzCore | |
| @IBDesignable | |
| public class CirclePhotoView: UIView { | |
| @IBInspectable public var image: UIImage? |
| CGFloat pageWidth = CGRectGetWidth(self.scrollView.frame); | |
| RAC(self.pageControl, currentPage) = [RACObserve(self.scrollView, contentOffset) map:^id(NSValue *value) { | |
| CGPoint contentOffset = [value CGPointValue]; | |
| NSUInteger page = floor((contentOffset.x - pageWidth / 2) / pageWidth) + 1; | |
| return @(page); | |
| }]; |
| [[[RACObserve(self.tableView, contentOffset) | |
| filter:^BOOL(NSValue *contentOffset) { | |
| CGPoint point = [contentOffset CGPointValue]; | |
| return point.y == 0.0f; | |
| }] | |
| take:1] | |
| subscribeCompleted:^{ | |
| // This block gets executed when the tableview has scrolled to top | |
| }]; |
| #import <Foundation/Foundation.h> | |
| typedef void(^SuccessBlock)(id object); | |
| typedef void(^ErrorBlock)(NSString *error); | |
| @interface JenkinsRequest : NSObject | |
| @property (copy) SuccessBlock successBlock; | |
| @property (copy) ErrorBlock errorBlock; |