Skip to content

Instantly share code, notes, and snippets.

@incorelabs
incorelabs / App.js
Created October 7, 2018 22:24
Card List from Github
const Card = (props) => {
return (
<div
style={
{
margin: "1em",
}
}
>
<img width="75px" src={ props.avatar_url } />
@incorelabs
incorelabs / activity_main.xml
Created February 28, 2018 01:49
A gist for activity
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.company.letsgetcoffee.MainActivity">
<LinearLayout
android:layout_width="match_parent"
@incorelabs
incorelabs / coffeegist.xml
Last active February 8, 2018 01:45
Sample gist
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="edu.utdallas.getcoffe.MainActivity">
<LinearLayout
android:layout_width="match_parent"
@incorelabs
incorelabs / app.js
Last active January 14, 2018 04:17
FDWorkshop - Heroku API Server JS file
const express = require("express"),
cors = require("cors"),
port = process.env.port || 3000,
app = express();
app.use(cors());
// assuming POST: name=foo&color=red <-- URL encoding
//
// or POST: {"name":"foo","color":"red"} <-- JSON encoding
@incorelabs
incorelabs / .gitignore
Created January 14, 2018 01:46
FDWorkshop - This is a predefined gitignore file for the Node JS web server
# Node build artifacts
node_modules
npm-debug.log
# Local development
*.env
*.dev
.DS_Store
package-lock.json
@incorelabs
incorelabs / RobotRun.java
Created October 21, 2017 21:01
Robot Run
package Robot;
import java.util.*;
import javax.swing.*;
public class RobotRun {
// Main entry point for this example
public static void main(String args[]) {
String numberOfRows = JOptionPane.showInputDialog("Enter the number of rows");