View gist:6567432
01-07 19:30:35.740: W/com.jjoe64.graphview(1373): *** WARNING *** No scaling available for graphs. Exception: | |
01-07 19:30:35.740: W/System.err(1373): java.lang.ClassNotFoundException: com.jjoe64.graphview.compatible.RealScaleGestureDetector | |
01-07 19:30:35.740: W/System.err(1373): at java.lang.Class.classForName(Native Method) | |
01-07 19:30:35.740: W/System.err(1373): at java.lang.Class.forName(Class.java:234) | |
01-07 19:30:35.740: W/System.err(1373): at java.lang.Class.forName(Class.java:181) | |
01-07 19:30:35.740: W/System.err(1373): at com.example.road.compatible.ScaleGestureDetector.<init>(ScaleGestureDetector.java:35) | |
01-07 19:30:35.740: W/System.err(1373): at com.example.road.GraphView.setScalable(GraphView.java:578) | |
01-07 19:30:35.740: W/System.err(1373): at com.example.road.GraphFragment.onCreateView(GraphFragment.java:38) | |
01-07 19:30:35.740: W/System.err(1373): at android.support.v4.app.Fragment.performCreateView(Fragment.java:1460) | |
01-07 19:30:35.740: W/System.err(1373): at android.support.v4.app.F |
View gist:6567034
final Button graphButton = (Button) findViewById(R.id.button1); | |
graphButton.setOnClickListener( new Button.OnClickListener(){ | |
public void onClick(View v){ | |
switchToGraph( ); | |
} | |
}); |
View gist:6557930
12-12 01:17:20.779: E/AndroidRuntime(2916): FATAL EXCEPTION: main | |
12-12 01:17:20.779: E/AndroidRuntime(2916): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.road/com.example.road.MainActivity}: android.view.InflateException: Binary XML file line #15: Error inflating class android.widget.ListView | |
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956) | |
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) | |
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.app.ActivityThread.access$600(ActivityThread.java:123) | |
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) | |
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.os.Handler.dispatchMessage(Handler.java:99) | |
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.os.Looper.loop(Looper.java:137) | |
12-12 01:17:20.779: E/AndroidRunt |
View gist:5381171
// BaseObj.cs | |
using UnityEngine; | |
using System.Collections; | |
public class BaseObj : MonoBehaviour { | |
public TextMesh template; | |
public float health; | |
View gist:5320552
function date($string){ | |
$dateArray = explode('-', $string); | |
$output = ""; | |
$months = array( | |
1 => "January", | |
2 => "February", | |
3 => "etc, dont forget to continue the array" | |
) | |
$output += $months[$dateArray[1]] ." "; |
View gist:5315500
function cd{ | |
cd $1 | |
pwd | |
} |
View gist:5217935
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
string foo[3] = {"a", "b", "c"}; | |
cout << &foo[0] << " minus " << &foo[1] << " equals " << int(&foo[0])-int(&foo[1]) << endl; | |
cout << *(&foo[0]-4) << endl; | |
cout << "Hello world!" << endl; |
View gist:5201910
RewriteBase /~slackware/slackware.koding.com/website | |
Redirect /index.html http://slackware.koding.com/dock.php # <- this is not working | |
#DirectoryIndex dock.php index.html <- this works |
View gist:5123160
Assets/Scripts/MenuManager.cs(25,17): | |
error CS0030: Cannot convert type | |
`System.Collections.Generic.KeyValuePair<int,System.Collections.Generic.Dictionary<int,UnityEngine.GameObject>>' | |
to | |
`System.Collections.Generic.KeyValuePair<int,UnityEngine.GameObject>' |
View gist:4727516
using UnityEngine; | |
using System.Collections; | |
public class Character : MonoBehaviour { | |
private float speed = 0.2F; | |
private Texture[] buffer = new Texture[2]; | |
private Texture image; | |
void Start () { |
NewerOlder