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
package com.fitc.views; | |
import android.annotation.TargetApi; | |
import android.content.Context; | |
import android.text.Html; | |
import android.util.AttributeSet; | |
import android.widget.TextView; | |
/** | |
* Created by Jon on 3/01/2015. |
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 python | |
"""This script converts Wordpress WXR file to a number of plain text files. | |
WXR stands for "WordPress eXtended RSS", which basically is just a | |
regular XML file. This script extracts entries from the WXR file into | |
plain text files. Output format: article name prefixed by date for | |
posts, article name for pages. | |
Usage: wxr2txt.py filename [-o output_dir] |
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
package com.example; | |
import android.content.Context; | |
import android.database.Cursor; | |
import android.support.v4.app.Fragment; | |
import android.support.v4.app.FragmentManager; | |
import android.support.v4.app.FragmentPagerAdapter; | |
import android.util.SparseIntArray; | |
import android.view.ViewGroup; |
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
package com.fitc.com.subaru; | |
import android.app.Activity; | |
import android.app.ListActivity; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.pm.ResolveInfo; | |
import android.hardware.usb.UsbDevice; | |
import android.os.AsyncTask; | |
import android.os.Bundle; |
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
# Fractile estimation from samples – prediction method with t-student distribution, if you dont know parent pop sd | |
tp <- function(x,n){ | |
result <- qt(x,n-1) * sqrt(1+(1/n)) | |
return(result) | |
} | |
# Fractile estimation from samples – prediction method with normal distribution, if you do know parent pop sd | |
up <- function(x,n){ | |
result <- qnorm(x) * sqrt(1+(1/n)) | |
return(result) |
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 subprocess | |
import sys | |
from pip import _internal as pip #this seems a little dangerous. as-off | |
DEBUG = True | |
def myprint(string_to_print): | |
if DEBUG: | |
print(string_to_print) |
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 RPi.GPIO as GPIO | |
import time | |
import sys | |
import threading | |
from typing import List, Type | |
import math | |
class FlowSensor: | |
def __init__(self, pin=23, calibration_factor=6, calibration_offset=8, sample_interval : float = 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
import os | |
import shapely.geometry as sg | |
import sectionproperties.pre.sections as sections | |
from sectionproperties.analysis.cross_section import CrossSection | |
import dxf | |
import utils | |
#change to fp of your dxf |
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 WaterLily | |
using StaticArrays | |
function block(L=2^5;Re=250,U=1,amp=0,ϵ=0.5,thk=2ϵ+√2) | |
# Set viscosity | |
ν=U*L/Re | |
# Create dynamic block geometry | |
function sdf(x,t) | |
# SDF defines form a paddle (a rectangle) |
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
{ | |
"anytime" : [ | |
"Hey there sexy!" | |
], | |
"morning" : [ | |
"Good morning, sunshine!", | |
"Who needs coffee when you have your smile?", | |
"Go get 'em, Tiger!" | |
], | |
"afternoon" : [ |
OlderNewer