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
import soot.Scene | |
import scala.collection.JavaConverters._ | |
object SootPrintMethods { | |
def main(args: Array[String]): Unit = { | |
Scene.v().loadClassAndSupport("java.lang.Object") | |
val a = Scene.v().getSootClass("java.lang.Object") | |
Scene.v().loadNecessaryClasses() |
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
import os.path | |
import sys | |
import numpy as np | |
import pandas as pd | |
def main(): | |
""" | |
$ python extract_log_L_and_log_Teff.py LOGS/ log_L_and_log_Teff.csv | |
""" |
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
module Lib where | |
import Text.Parsec | |
import Text.Parsec.String (Parser) | |
someFunc :: IO () | |
someFunc = putStrLn "someFunc" | |
numberStringParser :: Parser String | |
numberStringParser = many1 digit |
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/python | |
import sys | |
if len(sys.argv) >= 2: | |
print 1.0 / float(sys.argv[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
mysql> SELECT Observation.id, Observation.time, Observation.light, Observation.error, Result.classifier, Result.chance FROM Observation INNER JOIN Result ON (Observation.id = Result.id AND Observation.time = Result.time); | |
+---------------+------------+--------+-------+------------+-------------------+ | |
| id | time | light | error | classifier | chance | | |
+---------------+------------+--------+-------+------------+-------------------+ | |
| OGLE-0001.dat | 2088.91535 | 18.868 | 0.078 | Period | 0 | | |
| OGLE-0001.dat | 2090.87535 | 19.54 | 0.165 | Period | 0 | | |
| OGLE-0001.dat | 2103.92958 | 18.704 | 0.04 | Period | 0 | | |
| OGLE-0001.dat | 2104.94812 | 19.291 | 0.098 | Period | 0 | | |
| OGLE-0001.dat | 2106.84596 | 18.91 | 0.066 | Period | 0 | | |
| OGLE-0001.dat | 2116.82993 | 18.935 | 0.057 | Period | 0 | |
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
import sys | |
import matplotlib.pyplot as plt | |
def main(): | |
if not len(sys.argv) == 3: | |
print("Invalid number of arguments.") | |
print("python graph_rr_lyrae.py INPUTFILE OUTPUTFILE") | |
sys.exit(1) | |
else: |
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
import binary_classifier | |
import classifier | |
import classifier_box | |
import handler | |
import observation | |
### | |
# Define classifiers | |
### | |
def function(_): |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<oscp5messages> | |
<message channel="/muse/elements/blink" time="129" value="0" /> | |
<message channel="/muse/elements/jaw_clench" time="132" value="0" /> | |
<message channel="/muse/elements/blink" time="259" value="0" /> | |
<message channel="/muse/elements/jaw_clench" time="259" value="0" /> | |
<message channel="/muse/elements/blink" time="343" value="0" /> | |
<message channel="/muse/elements/jaw_clench" time="343" value="0" /> | |
<message channel="/muse/elements/blink" time="478" value="0" /> | |
<message channel="/muse/elements/jaw_clench" time="478" value="0" /> |
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
-- A node that is solid, but is also set to be wallmounted | |
minetest.register_node("test3398:solid_wallmount", { | |
description = "Solid Wallmount", | |
tiles = {"default_stone.png"}, | |
groups = {cracky = 3, stone = 1}, | |
drop = 'test3398:solid_wallmount', | |
paramtype1 = "wallmounted", | |
legacy_mineral = true, | |
sounds = default.node_sound_stone_defaults(), | |
}) |
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
/* | |
* Heap's algorithm | |
* | |
* Gives all permutations for the numbers 1 through n. | |
* | |
* Java implementation for psuedocode on the algorithm's Wikipedia article: | |
* https://en.wikipedia.org/wiki/Heap%27s_algorithm | |
*/ | |
import java.util.Scanner; |
NewerOlder