Skip to content

Instantly share code, notes, and snippets.

require 'resque'
require 'clockwork'
include Clockwork
handler do |job|
puts "Running #{job}"
Resque.enqueue(job)
end
#include <iostream>
#include <cmath>
#include <climits>
using namespace std;
double truncate(long double number, int n)
{
return (int)(number*pow(10,n)) / (float)pow(10,n);
}
#include <iostream>
#include <cmath>
#include <climits>
using namespace std;
double truncate(long double number, int n)
{
return (int)(number*pow(10,n)) / (float)pow(10,n);
}
#include <iostream>
#include <cmath>
#include <climits>
using namespace std;
long double truncate(long double number, int n)
{
//return (int)(number*pow(10,n)) / (float)pow(10,n);
return floor(100*number) / 100;
}
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*= require_self
*= require bootstrap
*= require_tree .
*= require bootstrap-responsive
*= require font-awesome
*= require typeahead.js-bootstrap
dor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*= require_self
*= require bootstrap
*= require_tree .
*= require bootstrap-responsive
*= require font-awesome
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a n
iuhhkljhlkj
@py4
py4 / krush.cpp
Created March 17, 2014 09:13
my main file
#include <cstring>
#include <cmath>
#include "backend.h"
#include <cstdlib>
using namespace std;
int main(int argc,char* args[])
{
Game game;
SDL_Event event;