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
use std::fs::File; | |
use std::path::Path; | |
use std::io::BufReader; | |
use std::io::BufRead; | |
use std::collections::HashMap; | |
use std::io::stdin; | |
fn sort_str(s: &String) -> String { | |
let mut v: Vec<char> = s.chars().collect(); | |
v.sort(); |
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
From: Dan Cosley <[email protected]> | |
Subject: [comp.lang.java.programmer] Re: Perl & Java - differences and uses | |
Date: 1998/09/27 | |
Message-ID: <[email protected]>#1/1 | |
X-Deja-AN: 395199212 | |
Approved: [email protected] | |
X-Disclaimer: The "Approved" header verifies header information for article transmission and does not imply approval of content. See .sig below. | |
X-Posting-Moderator: bogrow | |
X-For-FAQ-Mailto: [email protected] | |
X-FAQ-Is-At: ftp://rtfm.mit.edu/pub/faqs/best-of-usenet-humor |
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
struct Filesystem { | |
inodes: Map<Number, struct Inode { | |
attr: struct Attr { /* e.g. permissions, modification time, etc. */ } | |
contents: Union { | |
struct File { data: Ref<Blob> /* Noms pile of bytes */ } | | |
struct Directory { contents: Map<String, Number> } | |
} | |
}> | |
rootInode: Number | |
maxInode: Number |
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
struct Filesystem { | |
root: struct Inode { | |
attr: struct Attr { /* e.g. permissions, modification time, etc. */ } | |
contents: Union { | |
struct File { data: Ref<Blob> /* Noms pile of bytes */ } | | |
struct Directory: { contents: Map<string, Cycle<1>> } | |
} | |
} | |
} |
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
func (fs *nomsFS) mkdir(dir types.Struct, pathComponents []string) types.Struct { | |
if len(pathComponents) > 0 { | |
name := pathComponents[0] | |
return dir.Set(name, fs.mkdir(dir.Get(name).(types.Struct), pathComponents[1:])) | |
} else { | |
return types.NewStructWithType(directoryType, types.ValueSlice{types.NewMap()}) | |
} | |
} |
This file has been truncated, but you can view the full file.
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
2017/06/26 14:36:23 [INFO] Terraform version: 0.9.8 8d560482c34e865458fd884cb0790b4f73f09ad1+CHANGES | |
2017/06/26 14:36:23 [INFO] Go runtime version: go1.8 | |
2017/06/26 14:36:23 [INFO] CLI args: []string{"/Users/ahl/gosrc/bin/terraform", "plan", "-out=todo", "-refresh=false"} | |
2017/06/26 14:36:23 [DEBUG] Detected home directory from env var: /Users/ahl | |
2017/06/26 14:36:23 [DEBUG] Detected home directory from env var: /Users/ahl | |
2017/06/26 14:36:23 [DEBUG] Attempting to open CLI config file: /Users/ahl/.terraformrc | |
2017/06/26 14:36:23 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2017/06/26 14:36:23 [INFO] CLI command args: []string{"plan", "-out=todo", "-refresh=false"} | |
2017/06/26 14:36:23 [DEBUG] Detected home directory from env var: /Users/ahl | |
2017/06/26 14:36:23 [DEBUG] command: loading backend config file: /Users/ahl/src/transposit/terraform |
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
2017/06/26 14:38:32 [INFO] Terraform version: 0.9.8 8d560482c34e865458fd884cb0790b4f73f09ad1+CHANGES | |
2017/06/26 14:38:32 [INFO] Go runtime version: go1.8 | |
2017/06/26 14:38:32 [INFO] CLI args: []string{"/Users/ahl/gosrc/bin/terraform", "plan", "-out=todo", "-refresh=false", "-target=null_resource.svc-config"} | |
2017/06/26 14:38:32 [DEBUG] Detected home directory from env var: /Users/ahl | |
2017/06/26 14:38:32 [DEBUG] Detected home directory from env var: /Users/ahl | |
2017/06/26 14:38:32 [DEBUG] Attempting to open CLI config file: /Users/ahl/.terraformrc | |
2017/06/26 14:38:32 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2017/06/26 14:38:32 [DEBUG] Detected home directory from env var: /Users/ahl | |
2017/06/26 14:38:32 [INFO] CLI command args: []string{"plan", "-out=todo", "-refresh=false", "-target=null_resource.svc-config"} | |
2017/06/26 14:38:32 [DEBUG] command: loading backend config file: /Users/ahl/src/transposit/terraform |
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
2018/05/30 09:35:34 [INFO] Terraform version: 0.11.7 41e50bd32a8825a84535e353c3674af8ce799161+CHANGES | |
2018/05/30 09:35:34 [INFO] Go runtime version: go1.10.1 | |
2018/05/30 09:35:34 [INFO] CLI args: []string{"/Users/ahl/gosrc/bin/terraform", "apply"} | |
2018/05/30 09:35:34 [DEBUG] Attempting to open CLI config file: /Users/ahl/.terraformrc | |
2018/05/30 09:35:34 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2018/05/30 09:35:34 [INFO] CLI command args: []string{"apply"} | |
2018/05/30 09:35:34 [INFO] command: empty terraform config, returning nil | |
2018/05/30 09:35:34 [DEBUG] command: no data state file found for backend config | |
2018/05/30 09:35:34 [DEBUG] New state was assigned lineage "6e082fc8-cec3-b3a6-774b-8935c5d11d44" | |
2018/05/30 09:35:34 [INFO] command: backend initialized: <nil> |
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
SELECT * FROM google_hire.list_applications AS app | |
JOIN google_hire.list_candidates AS can | |
ON app.candidate = can.name | |
WHERE app.tenant = 'my_tenant' | |
AND app.filter='status.state=ACTIVE' | |
AND can.tenant = 'my_tenant' | |
AND can.filter='applications.status.state=ACTIVE’ |
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
SELECT * FROM google_hire.list_applications AS app | |
JOIN google_hire.list_candidates AS can | |
ON app.candidate = can.name | |
WHERE app.tenant = 'my_tenant' | |
AND app.filter='status.state=ACTIVE' | |
AND can.tenant = 'my_tenant' | |
AND can.filter='applications.status.state=ACTIVE' | |
AND job = (SELECT name FROM google_hire.list_jobs | |
WHERE tenant='my_tenant' | |
AND filter='state=OPEN' |
OlderNewer