Skip to content

Instantly share code, notes, and snippets.

View attashe's full-sized avatar

Attashe attashe

  • Kingston, CA
View GitHub Profile
<!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">
@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>
@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');
#include <iostream>
#include <stdlib.h>
#include <time.h>
#include <math.h>
using namespace std;
class Quat {
public:
double fi, x, y, z;
#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
// класс-список, работает с указателями
class node
{
int info; node* next;
public:
#include <iostream>
#include <string>
#include <exception>
#include <clocale>
#include <typeinfo>
using namespace std;
class Transport {
double mass;
string title;
int RandomazerPartition(int* A, int p, int r) {
int q = rand() % (r - p) + p;
int j = 0;
int k = 0;
for (int i = p; i <= r; i++) {
if (A[i] < A[q]) {
A1[j] = A[i];
j++;
}
if(A[i] > A[q]) {
@attashe
attashe / GoogleMapDownloader.py
Last active November 2, 2018 10:16 — forked from eskriett/GoogleMapDownloader.py
A python script to download high resolution Google map images given a longitude, latitude and zoom level.
#!/usr/bin/python
# GoogleMapDownloader.py
# Created by Hayden Eskriett [http://eskriett.com]
#
# A script which when given a longitude, latitude and zoom level downloads a
# high resolution google map
# Find the associated blog post at: http://blog.eskriett.com/2013/07/19/downloading-google-maps/
import urllib
import Image
@attashe
attashe / BattleUnit.cs
Created February 25, 2020 10:13
Porting Unity Scripts
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BattleUnit : MonoBehaviour {
public GameObject fireCyrcle;
public GameObject moveCyrcle;
bool isSelected;
GameObject fireZone;
import argparse
class ConfigType(type):
def __new__(mcls, name, bases, attrs):
if name.startswith('None'):
return None
print(attrs)
mcls.parse_args()