View bashrc
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# .see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If running non interactively, do nothing | |
######################################################## | |
#|# Preamble # | |
######################################################## | |
[ -z "$PS1" ] && return |
View networkx_classic_graph_generators.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View GraphQL2ASE_fast.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View GraphQL2ASE_fast.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View GraphQL2ASE.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View XXX_variable_name_and_regex.sc
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
#!/usr/bin/env scala -savecompiled | |
object Main extends App { | |
def getName(y: Any) = { | |
val list = y.getClass.toString.split("\\$").map(_.trim).toList | |
list(list.length - 1) | |
} | |
object x { |
View XXX_print_itself.sc
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
#!/usr/bin/env scala -savecompiled | |
import scala.io | |
val filename = new Exception().getStackTrace.head.getFileName | |
val file = scala.io.Source.fromFile(filename) | |
for (line <- file.getLines) { | |
println(line) | |
} | |
file.close |
View XXX_fizzbuzz.sc
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
#!/usr/bin/env scala -savecompiled | |
for (i <- 1 to 15) { | |
if (i % 15 == 0 ){ | |
println("FizzBuzz") | |
} else if (i % 5 == 0) { | |
println("Buzz") | |
} else if (i % 3 == 0) { | |
println("Fizz") | |
} else { |
View 5minutes.js
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
// An Import | |
var _ = require('lodash') | |
// A function | |
const times2 = (x) => { | |
return 2 * x | |
} | |
// An Object | |
const o = { |
View getWyckoffFromStructure.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder