Skip to content

Instantly share code, notes, and snippets.

View attashe's full-sized avatar

Attashe attashe

  • Kingston, CA
View GitHub Profile
#include <iostream>
#include <stdlib.h>
#include <time.h>
#include <math.h>
using namespace std;
class Quat {
public:
double fi, x, y, z;
@attashe
attashe / func
Created November 20, 2016 12:25
function getImageUrl(name, message, imageBase64) {
let parseFile = new Parse.File(name, imageBase64);
let Telegram = Parse.Object.extend('Telegram');
let p = new Telegram();
p.set('message', message);
p.set('image', parseFile);
p.save().then(function() {
// The file has been saved to Parse.
let q = new Parse.Query('Telegram');
q.addDescending('createdAt');
@attashe
attashe / index.html
Last active November 20, 2016 01:22
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Chat</title>
<script
src="https://code.jquery.com/jquery-3.1.0.min.js"
integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s="
crossorigin="anonymous"></script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="http://app.englishpatient.org/assets/css/semantic.min.css">