create_table :users do |t|
t.string :name
t.bigint :remote_id
t.decimal :salary
t.text :introduction
t.timestamps
end
This file contains 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 Node: | |
def __init__(self, val, color = 'B'): | |
self.val = val | |
self.color = color | |
self.left = None | |
self.right = None | |
self.parent = None | |
def grandparent(self): | |
if self.parent != None: |
This file contains 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 PUBLIC "-//W3C//DTD HTML 4.01//EN"> | |
<html> | |
<head> | |
<meta content="HTML Tidy for Linux (vers 25 March 2009), see www.w3.org" name="generator"> | |
<title> | |
Purchase Orders - Page 1 | |
</title> | |
<meta content="authenticity_token" name="csrf-param"> | |
<meta content="7g2N04MLk8aWMpRjaQlf+ikSI1GAGo//d5K7rRSyo/4MJiaip03zW07nfmZ6N3ZI/zI0UzZBKiui5NQetx0BpA==" name="csrf-token"> | |
<meta name="csp-nonce"> |
This file contains 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
-- This is to use as a reference for creating PostgreSQL tables. | |
-- It comes from a Rails database, so these statements are from | |
-- activerecord's idea of how to map Decimal, Datetime, and string | |
-- fields to SQL data types. The version of activerecord used was 5.2.x. | |
-- The live application from which this code came is at | |
-- https://pinvvue.herokuapp.com/ | |
-- The app code for it is at | |
-- https://github.com/mikedll/PInvVue |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Data.SqlClient; | |
using System.Linq; | |
using System.Web; | |
namespace DScrib2.Models | |
{ | |
public class User | |
{ |
This file contains 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
(defun get-lines() | |
(let* ((mine-file (concat settings-dir "/common/emacs/mike/mine.txt")) | |
(cur-line nil) | |
(files-to-load (list)) | |
(my-configs-buf (find-file-noselect mine-file))) | |
(with-current-buffer my-configs-buf | |
(goto-char (point-min)) |
This file contains 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
{ | |
"id": 1, | |
"name": "Michael", | |
"lastname": "Rivers" | |
} |
Show that "divides" (|) is a partial ordering of the positive integers
Let S = (
Reflexive:
Every number divides itself with quotient 1. So xRx for all x in
Antisymmetric:
OlderNewer