Skip to content

Instantly share code, notes, and snippets.

View Announcement's full-sized avatar
💭
Looking for work!

Jacob Francis Powers Announcement

💭
Looking for work!
View GitHub Profile
@Announcement
Announcement / planegame.html
Last active December 28, 2015 01:59
Plane game compiles and runs, throws errors no shooting down, need to add grid clicks
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="Anonymous"/>
<meta name="keywords" content="javascript canvas resizeable plane game 1948"/>
<meta name="description" content="just another javascript canvas game"/>
<title>The Plane Game</title>
<style>
@Announcement
Announcement / plane.js
Created November 13, 2013 20:00
Plane file seperated into javascript, making update and highlighting and such easier for work. html not included
var a = document.getElementById("a");
var b = a.getContext("2d");
//settings
var m = 20; // resolution multiplier, 50 = 800x450, 80 = 1280x720, 120 = 1920x1080
var BULLET_RATE = 8;
var FRAME_RATE = 30;
//var PLAYER_SPEED = 100;
var BULLET_SPEED = 392;
@Announcement
Announcement / screencap
Created November 19, 2013 02:21
a captuer of Snail AV
C:\Users\Admin\Documents\JSProjects>node dox.js
d::
''d$: :h
d$ :$h'
....... d$..$h'
..cc$$$$$$$$$c. ...c$$$$$$$$$h
.d$$' '$$$h. cc$$$$:::::d$!$h
c$$' '$$c .$$$$:::()::d$!$h'
.c$$' $$h. .d$$::::::::d$!!$h
.$$h' $$$. $$$::::::::$$!!$h'
@Announcement
Announcement / dox.js
Created November 19, 2013 02:22
Snail Antivirus Source Code On Progress
var readline = require('readline');
var colors = require('colors');
var rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
var fs = require('fs');
rl.setPrompt('>> ');
var path = "C:\\Users\\Admin\\Documents";//*/process.cwd();
@Announcement
Announcement / gist:8569971
Created January 22, 2014 23:48
Several files squished into one for a mysql enabled editor with schema to json to html converter
/**
*Requires CodeMirror
*Seperate files
* probably have to fix links in html
* javascript/php post not working
* PM/pm.js, PM/pm.html, PM/pm.css, PM/data.php
*
**/
@Announcement
Announcement / gist:8570012
Created January 22, 2014 23:51
Edmodo code for computer science auto bot open up quiz, go to chrome console, copy paste one in, enter. there is your Q&A's.
(function(){
var qs=document.getElementsByClassName("viewQuestion");
for (var q in qs){
var code=qs[q].children[1].innerText.replace(/(Find the output(\:|))/im,"").trim();
console.log(code);
eval(code.replace(/(System\.out\.println)/gim,"console.log").replace(/(int)/gim,"var"));
}})()
(function(){
var qs=document.getElementsByClassName("text");
@Announcement
Announcement / Permissions.yml
Last active July 13, 2022 18:49
Nexus Minecraft Permissions Ex Configuration File Modification; Gail + Anon Edition
groups:
Guest:
default: true
prefix: '&7[Guest]&7 '
suffix: '&f'
options:
rank: '900'
permissions:
- modifyworld.chat
- modifyworld.login
@Announcement
Announcement / update.js
Created February 22, 2014 05:51
Node javascript updater
//Update test
//https://gist.githubusercontent.com/Announcement/9149300/raw/ef34fd69f58ff2aa2f531a59b7241f2642cbade1/update.js
<!DOCTYPE html>
<html lang="en" id="facebook" class="no_js">
<head><meta charset="utf-8" /><script>function envFlush(a){function b(c){for(var d in a)c[d]=a[d];}if(window.requireLazy){window.requireLazy(['Env'],b);}else{Env=window.Env||{};b(Env);}}envFlush({"ajaxpipe_token":"AXgFehg1m_-ATOdA","lhsh":"qAQH8zbqK"});</script><script>CavalryLogger=false;</script><noscript><meta http-equiv="refresh" content="0; URL=/?_fb_noscript=1" /></noscript><meta name="robots" content="noodp, noydir" /><meta name="referrer" content="default" id="meta_referrer" /><meta name="description" content="Facebook is a social utility that connects people with friends and others who work, study and live around them. People use Facebook to keep up with friends, upload an unlimited number of photos, post links and videos, and learn more about the people they meet." /><link rel="alternate" media="handheld" href="https://www.facebook.com/" /><title id="pageTitle">Welcome to Facebook - Log In, Sign Up or Learn More</title><meta property="og:
import java.net.*;
import java.io.*;
public class Client {
public static void main(String[] args) throws IOException {
while(true)
{
String sentence;
String modifiedSentence;
BufferedReader inFromUser = new BufferedReader( new InputStreamReader(System.in));
Socket clientSocket = new Socket("localhost", 6789);