Skip to content

Instantly share code, notes, and snippets.

@getjump
getjump / ASM
Created November 29, 2014 09:12
<?php
$stacks =
[
'edi' => 0x0,
'ecx' => 0x0,
'ebp' => [],
'eax' => 0x0,
'cl' => 0x0
];
@getjump
getjump / NewtonInterpolationFD
Created March 18, 2015 08:03
Function interpolation using Newton polynomial with Finite Differences
clear;
close all;
clc;
a = -10;
b = 10;
n = 14;
j = a:0.2:b;
@getjump
getjump / String.h
Last active October 2, 2024 15:28
#ifndef STRING_H
#define STRING_H
#define _CRT_SECURE_NO_WARNINGS
#define CAPACITY_CONSTANT 1.7
#include <iostream>
#include <gtest\gtest.h>
class String
#include "..\String.h"
#include <gtest\gtest.h>
TEST(StringTest, InsertTest)
{
String s("Far Eastern");
s.insert(4, "1337 ");
EXPECT_EQ(s, "Far 1337 Eastern");
}
@getjump
getjump / YOLO.php
Last active November 16, 2019 10:50
<?php
ini_set('memory_limit', '-1');
require 'vendor/autoload.php';
use Moor\TokenFileCache;
use GuzzleHttp\Pool;
use GuzzleHttp\Promise;
use Moor\UserVotes;
<?php
date_default_timezone_set('Asia/Vladivostok');
$_config = (object)[
'username' => 'getjump',
'password' => 'pw',
'forum' => 'http://www.sythe.org/',
'thread_id' => '1824569',
'message' => 'Or add on steam: jerbos41',
@getjump
getjump / lël
Created September 11, 2015 04:47
clear
echo ************LAN CFG by GetJump v0.01 LOADED SUCESSFULLY************
echo ************Uparrow - Buy deagle***********************************
echo *************Leftarrow - Buy full grenade complect*****************
echo **************Downarrow - Buy AWP**********************************
echo ***************Rightarrow - Buy ak47/m4a1**************************
echo ****************NUM 4 - leftarrow - Drop***************************
echo ****************NUM 2 - downarrow - say Fast A*********************
echo ****************NUM 8 - uparrow - say Fast B***********************
echo ****************NUM 6 - rightarrow - say Drop**********************
@getjump
getjump / Capfile
Created October 22, 2015 23:31 — forked from forsaken1/Capfile
Capistrano 3 deploy with Unicorn and Nginx
# Load DSL and set up stages
require 'capistrano/setup'
# Include default deployment tasks
require 'capistrano/deploy'
require 'capistrano/unicorn_nginx'
require 'rvm1/capistrano3'
require 'capistrano/bundler'
require 'capistrano/rails/assets'
require 'capistrano/rails/migrations'
@getjump
getjump / Dockerfile
Created October 26, 2015 02:26
Docker Rails
FROM ruby:2.2.0
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev
RUN mkdir /myapp
WORKDIR /myapp
ADD Gemfile /myapp/Gemfile
RUN bundle install
ADD . /myapp
var gulp, sass, sourcemaps, browserify, coffeeify, source, util, watchify, _, livereload, notify, browserSync;
gulp = require('gulp');
util = require('gulp-util');
watchify = require('watchify');
sass = require('gulp-sass');
sourcemaps = require('gulp-sourcemaps');
browserify = require('browserify');
coffeeify = require('coffeeify');
source = require('vinyl-source-stream');