Command | Info |
---|---|
git clone [repo] |
Use the URL from the github page, this copies the repo to your computer |
git status |
Prints out the current branch and other info |
git checkout [branch] |
Switches to a different branch. Use -b to create a new branch. |
git add [file] <file2> ... |
Adds files to be staged (used) for the next commit. Use git add . to add all changed files. |
git commit |
Creates a commit with the staged changes, pops up a vi window to add a message. A shortcut is to do git commit -m "Commit message here" and it will directly commit with the given message. |
git push |
This file contains hidden or 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
<?php | |
$dir = isset($_GET['dir']) ? $_GET['dir'] : '.'; | |
if ($dir[0] === '/' || preg_match("/\.\./", $dir)) { | |
header("Location: ". basename(__FILE__)); | |
} | |
?> | |
<!doctype html> | |
<html lang="en"> |
This file contains hidden or 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
TODO: | |
Email Chelsey | |
Tutoring clarification | |
website info | |
backend info | |
server info | |
RESEARCH: | |
ruby | |
bootstrap |
This file contains hidden or 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 team.chisel.common.inventory; | |
import lombok.Getter; | |
import net.minecraft.entity.player.EntityPlayer; | |
import net.minecraft.entity.player.InventoryPlayer; | |
import net.minecraft.inventory.ClickType; | |
import net.minecraft.inventory.Container; | |
import net.minecraft.inventory.Slot; | |
import net.minecraft.item.ItemStack; | |
import net.minecraft.nbt.NBTTagCompound; |
This file contains hidden or 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
#include "QuickSorter.h" | |
QuickSorter::QuickSorter(Partition p) : type(p), Sorter<int>("Quicksort"){} | |
QuickSorter::~QuickSorter() | |
{ | |
} | |
void QuickSorter::sort(int *arr, int size) |
This file contains hidden or 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 crazypants.enderio.machine.obelisk.weather; | |
import net.minecraft.client.Minecraft; | |
import net.minecraft.client.particle.EntityFireworkSparkFX; | |
import net.minecraft.entity.item.EntityFireworkRocket; | |
import net.minecraft.util.MathHelper; | |
import net.minecraft.world.World; | |
import cpw.mods.fml.relauncher.ReflectionHelper; | |
import crazypants.enderio.machine.obelisk.weather.TileWeatherObelisk.WeatherTask; |
This file contains hidden or 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 team.chisel.client.render; | |
import java.awt.geom.Rectangle2D; | |
import java.util.Arrays; | |
import java.util.List; | |
import javax.annotation.Nullable; | |
import lombok.Getter; | |
import lombok.RequiredArgsConstructor; |
This file contains hidden or 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.creatubbles.ctbmod.client.gui.upload; | |
import java.awt.Graphics2D; | |
import java.awt.Image; | |
import java.awt.Rectangle; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.util.Map; | |
import java.util.Map.Entry; |
This file contains hidden or 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.creatubbles.ctbmod.client.gui.upload; | |
import java.awt.Point; | |
import java.awt.Rectangle; | |
import java.io.File; | |
import java.io.FilenameFilter; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.concurrent.Executors; |
This file contains hidden or 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.fireball1725.graves.helpers; | |
import net.minecraft.block.BlockAir; | |
import net.minecraft.block.state.IBlockState; | |
import net.minecraft.util.BlockPos; | |
import net.minecraft.world.World; | |
public class SafeBlockReplacer { | |