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 __future__ import division | |
from scikits.audiolab import flacread | |
from numpy.fft import rfft, irfft | |
from numpy import argmax, sqrt, mean, diff, log | |
from matplotlib.mlab import find | |
from scipy.signal import blackmanharris, fftconvolve | |
from time import time | |
import sys | |
from parabolic import parabolic |
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
<article class="speakerslist"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-sm-8"> | |
<h3 class="speakerslist-title">title</h3> | |
<h5 class="speakerslist-name">with <a href="/speakers/shortname">name</a></h5> | |
<p class="speakerslist-info"><a href="/speakers/shortname"> | |
<img class="speakerslist-img img-circle pull-left" src="/images/speakers/shortname_tn.jpg" alt="Photo of name"></a> | |
summary | |
</a></p> |
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
// null value logic - condition provided | |
function nvlc(input, alternative, condition=null) { | |
"use strict"; | |
if (condition != null) { | |
if (condition(input)) { | |
return input; | |
} else { | |
return alternative; | |
} | |
} 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
class Chain(): | |
def __init__(self): | |
self.exampleString = '' | |
def prepend(self, str): | |
self.exampleString = str + self.exampleString; | |
return self |
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> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<head> | |
<title>Bootstrap Example</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> |
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
##### NOTE ##### | |
# THIS MAY NOT BE THE BEST OPTION. I Would also look up subqueries. https://www.techonthenet.com/oracle/subqueries.php | |
# But this is an example of dynamically creating and executing queries with Python. So, this is a Cadillac solution to a | |
# Bicycle problem, but something that I think you should be aware of. It can simplify life SO MUCH more than PL/SQL, but | |
# as I was writing this, you might have better luck with a subquery.. oh well! | |
import sqlite3 | |
# Python DOES NOT have constants. These are global variables, so don't copy this in super huge projects. |
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 android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.util.Log; | |
import io.realm.Realm; | |
import io.realm.RealmResults; | |
public class MainActivity extends AppCompatActivity { | |
// Class specific variables and constants |
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
public enum Element { | |
NORMAL, | |
FIRE, | |
WATER, | |
ELECTRIC, | |
GRASS, | |
ICE, | |
FIGHTING, | |
POISON, | |
GROUND, |
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
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
<!-- Optional theme --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> | |
<!-- Latest compiled and minified JavaScript --> |
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; | |
// The sealed keyword enables you to prevent the inheritance of a class or certain class members | |
// that were previously marked virtual. | |
public sealed class Book : Publication | |
{ | |
/* | |
The first constructor uses the this keyword to call the other constructor. | |
This is a common pattern in defining constructors; constructors with fewer parameters |
OlderNewer