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
I am attesting that this GitHub handle purespider is linked to the Tezos account tz1PqooZUtCQqP539PmMzUWHtaUX6EQtFY5S for tzprofiles | |
sig:edsigtZYJxdT8hLKxKxrKgEFDsj2NRddAdEGWMAmA5QKaqUDwqntHYLuy1fYkAW4PbGVvHt4fMvVi53uEtEYtsmm5tdHCBgFCfG |
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
// Fix Metallurgy Chisel groups for blocks that have regular chisel blocks as well | |
mods.chisel.Groups.removeGroup("copper_block"); | |
mods.chisel.Groups.addVariation("copperblock", <metallurgychisel:base_circle_plate:0>); | |
mods.chisel.Groups.addVariation("copperblock", <metallurgychisel:base_quarter_plate:0>); | |
mods.chisel.Groups.addVariation("copperblock", <metallurgychisel:base_horizontal_plate:0>); | |
mods.chisel.Groups.addVariation("copperblock", <metallurgychisel:base_small_bricks:0>); | |
mods.chisel.Groups.addVariation("copperblock", <metallurgychisel:base_horizontal_pipes:0>); | |
mods.chisel.Groups.addVariation("copperblock", <metallurgychisel:base_plate:0>); | |
mods.chisel.Groups.addVariation("copperblock", <metallurgychisel:base_blank_plate: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
/* | |
* SPI testing utility (using spidev driver) | |
* | |
* Copyright (c) 2007 MontaVista Software, Inc. | |
* Copyright (c) 2007 Anton Vorontsov <avorontsov@ru.mvista.com> | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License. | |
* |
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 Bitmap resizeBitmap(Bitmap in, float newWidth, float newHeight) { | |
// http://forrst.com/posts/Bitmap_Drawable_Resize_on_Android-mjr | |
Bitmap bitmapOrig = in; | |
DisplayMetrics metrics = new DisplayMetrics(); | |
WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); | |
windowManager.getDefaultDisplay().getMetrics(metrics); | |
float logicalDensity = metrics.density; |
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 Bitmap drawCheck(Bitmap in) { | |
// http://forrst.com/posts/Bitmap_Drawable_Resize_on_Android-mjr | |
// http://stackoverflow.com/questions/14801075/android-how-to-apply-mask-on-imageview | |
float newWidth = 32; | |
float newHeight = 32; | |
Bitmap bitmapOrig = in; | |
DisplayMetrics metrics = new DisplayMetrics(); |
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
function loadURL(url) { | |
$.get("http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D%27" + | |
encodeURIComponent(url) + | |
"%27%0A&format=xml&diagnostics=false", | |
function(data){ | |
var xml = $( data ); | |
var body = xml.find("query results body"); | |
// ... | |
} | |
); |
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"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="pi.shade.mobileapp" | |
android:versionCode="1" | |
android:versionName="1.0" > | |
<uses-sdk | |
android:minSdkVersion="17" | |
android:targetSdkVersion="17" /> |