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
| use super::merchants::Merchant; | |
| use crate::schema::charge_logs; | |
| use chrono::NaiveDateTime; | |
| use diesel::{ | |
| deserialize::{self, FromSql}, | |
| expression::Expression, | |
| pg::Pg, | |
| serialize::{self, Output, ToSql}, | |
| sql_types::Bpchar, | |
| AsExpression, Associations, Identifiable, Insertable, Queryable, |
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
| format: | |
| subject: '### %{subject}' | |
| line: '* [%{title}](%{url}) by @[%{user}](https://github.com/%{user}) %{status}' | |
| dictionary: | |
| status: | |
| merged: '**merged!**' | |
| closed: '**closed!**' |
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
| "use strict"; | |
| function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } | |
| function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } | |
| (function () { | |
| var _ref = _asyncToGenerator( | |
| /*#__PURE__*/ | |
| regeneratorRuntime.mark(function _callee(p) { |
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
| #[test] | |
| fn test_ptr() { | |
| use std::ptr; | |
| // let mut x = vec![1, 2, 3]; | |
| // let y = vec![4, 5, 6, 7, 8]; | |
| let mut vec = vec![0; 4]; | |
| let src = vec![1, 2]; | |
| // unsafe { |
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
| fn main() { | |
| // let bits = "000000000001010101111111100100101".to_owned(); | |
| let bits = "AAAAABBBBCCCDDE".to_owned(); | |
| let bit_vec = vec![0b000000u8, 0b00010101, 0b01111111, 0b11110010, 0b0101]; | |
| println!("{:?} {:?}", bits, &bit_vec); | |
| println!("{:b} {}", 255, 0b01010101); | |
| println!("{:b} {:b}", 5, 242); | |
| } |
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
| .a { color: red }; // Useless | |
| .a .b { color: blue }; | |
| .a { color: black }; | |
| .b { color: black }; // ? |
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
| ! Molokai theme | |
| *xterm*fontSize: 12 | |
| *xterm*background: #101010 | |
| *xterm*foreground: #d0d0d0 | |
| *xterm*cursorColor: #d0d0d0 | |
| *xterm*color0: #101010 | |
| *xterm*color1: #960050 | |
| *xterm*color2: #66aa11 | |
| *xterm*color3: #c47f2c | |
| *xterm*color4: #30309b |
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
| package main | |
| import ("time") | |
| func Producer(ch chan int) { | |
| for i := 0; i < 5; i++ { ch <- i } | |
| println("close") | |
| close(ch) | |
| } | |
| func Consumer(ch1, _ chan int) { |
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
| let open Printf in | |
| let open Ast in | |
| let open Eval.Environment in | |
| let x = empty in | |
| let inf = create_info "file" 0 0 in | |
| set x (TermVar (inf, "x")) "my-x"; | |
| set x (TermVar (inf, "y")) "my-y"; | |
| printf "%s\n" @@ show x; |
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
| not = b -> b false true | |
| not true | |
| -> (b -> b false true) true | |
| -> true false true | |
| -> (true false) true | |
| -> ((t -> f -> t) false) true | |
| -> (f -> false) true | |
| -> false |
NewerOlder