I hereby claim:
- I am jesselawson on github.
- I am jesselawson (https://keybase.io/jesselawson) on keybase.
- I have a public key ASBc9tUfZoktBJkb1UcDaFOiL8gmNK9ADR2jBlZjnT1CFgo
To claim this, I am signing this object:
| int c; | |
| int lastc; | |
| while((c=getchar()) != EOF) { | |
| if(c == ' ') { | |
| if(lastc == 1) {} else {putchar(c); lastc = 1; } | |
| } else if (c != ' ') { | |
| putchar(c); | |
| lastc = 0; | |
| } else {} |
| $string = "MyString" | |
| get-childitem | where-object {$_.Name -like "*$string*"} | foreach ($_) {remove-item $_.fullname} |
| # This file will read through the index files (*.txt) and | |
| # copy/rename the files appropriately so that they're ready for upload to ImageNow | |
| # Example index file: | |
| # "SID","LAST NAME","FIRST NAME","DOB","DOCTYPE","IMAGE" | |
| # "234234","Lastname","Firstname","1/15/1986","STUDENT APPLICATION","E:\APPLICATIONS\1.TIF" | |
| # "345345","Johnson","Bob","8/25/1986","GRADE WAIVER","E:\APPLICATIONS\2.TIF" | |
| # "456456","Doe","Jane","1/15/1986","STUDENT APPLICATION","E:\APPLICATIONS\3.TIF" | |
| # Note that the index file is in CSV form. |
| # Usage: powershell ExportSchema.ps1 "SERVERNAME" "DATABASE" "C:\<YourOutputPath>" | |
| # Start Script | |
| Set-ExecutionPolicy RemoteSigned | |
| # Set-ExecutionPolicy -ExecutionPolicy:Unrestricted -Scope:LocalMachine | |
| function GenerateDBScript([string]$serverName, [string]$dbname, [string]$scriptpath) | |
| { | |
| [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null |
I hereby claim:
To claim this, I am signing this object:
| #include <stdio.h> | |
| #include <string.h> | |
| int main(void) { | |
| char* full_name = "Jesse Lawson"; | |
| char* ptr = full_name; | |
| printf("newptr: %p\n", ptr); | |
| full_name = "Jesse Happy Bubble Fun Club Lawson"; | |
| ptr = full_name; | |
| printf("newptr: %p\n", ptr); |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| int main(void) { | |
| // sizeof(char) is always 1, but we have it here | |
| // for instructional purposes | |
| char* full_name = malloc(sizeof(char)*strlen("Jesse Lawson")+1); | |
| strcpy(full_name, "Jesse Lawson"); |
| // Code for the Second Checkpoint | |
| // Tutorial: https://jesselawson.org/rust/get-started-with-rust-by-building-a-tiny-markdown-compiler/ | |
| // | |
| // The purpose of this checkpoint is to ensure that you have a complete copy | |
| // of the code in the tutorial up to the checkpoint. I want you to tinker and | |
| // explore, but to keep up with the rest of the tutorial, make sure your | |
| // code matches this checkpoint. | |
| fn get_version() -> u16 { | |
| 1000 |
| // Code for the Third Checkpoint | |
| // Tutorial: https://jesselawson.org/rust/get-started-with-rust-by-building-a-tiny-markdown-compiler/ | |
| // | |
| // The purpose of this checkpoint is to ensure that you have a complete copy | |
| // of the code in the tutorial up to the checkpoint. I want you to tinker and | |
| // explore, but to keep up with the rest of the tutorial, make sure your | |
| // code matches this checkpoint. | |
| fn parse_markdown_file() { | |
| // This will be created in Chapter 4 |
| // Code for the Fourth Checkpoint | |
| // Tutorial: https://jesselawson.org/rust/get-started-with-rust-by-building-a-tiny-markdown-compiler/ | |
| // | |
| // The purpose of this checkpoint is to ensure that you have a complete copy | |
| // of the code in the tutorial up to the checkpoint. I want you to tinker and | |
| // explore, but to keep up with the rest of the tutorial, make sure your | |
| // code matches this checkpoint. | |
| fn parse_markdown_file(_file: &str) { | |
| println!("[ INFO ] Trying to parse {}...", _file); |