Skip to content

Instantly share code, notes, and snippets.

View weaver-viii's full-sized avatar
🤳
selfie chika!!

Roma Chi weaver-viii

🤳
selfie chika!!
  • Earth
View GitHub Profile
@weaver-viii
weaver-viii / OOCheatSheet.java
Created January 14, 2021 09:36 — forked from john-science/OOCheatSheet.java
Java: an Objected Oriented Cheat Sheet
/**
* The basic class syntax.
*/
public class BasicClass {
public BasicClass() {
// This is the constructor.
}
@weaver-viii
weaver-viii / engine_some_func.js
Created October 12, 2017 11:31
dobavil_v Line:142: var SpriteSheet = new function() {
var myImages = ['img/star.png','img/koin.png'];
(function() {
var imageCount = myImages.length;
var loadedCount = 0, errorCount = 0;
var checkAllLoaded = function() {
if (loadedCount + errorCount == imageCount ) {
// do what you need to do.
console.log("laodedddddd");
@weaver-viii
weaver-viii / server.py
Created September 29, 2017 14:08
herli ne postit /hello и /messages
from flask import Flask, json, request
app = Flask(__name__)
@app.route('/')
def api_root():
return 'Welcome'
@app.route('/hello')
def api_hello():
if 'name' in request.args:
@weaver-viii
weaver-viii / hibernate-clojure.clj
Created July 4, 2016 09:00 — forked from m0smith/hibernate-clojure.clj
Proof of concept of using clojure and hibernate
(ns topoged.model.type
(:import
(javax.persistence Entity Id Column Table GeneratedValue)
))
(definterface IType (getId []))
(deftype
^{Entity {} Table {:name="TYPE"} org.hibernate.annotations.Entity {:mutable false}}
TypeX [^Long id]
@weaver-viii
weaver-viii / default-openshift-ghost.vcl
Created June 25, 2016 16:40 — forked from niedbalski/default-openshift-ghost.vcl
Proxy varnish ghost blog engine on redhat openshift
backend default {
.host = "app.rhcloud.com";
.port = "80";
}
sub vcl_recv {
set req.http.host = "app.rhcloud.com";
if (req.http.cache-control ~ "no-cache") {
if(typeof Math.imul == "undefined" || (Math.imul(0xffffffff,5) == 0)) {
Math.imul = function (a, b) {
var ah = (a >>> 16) & 0xffff;
var al = a & 0xffff;
var bh = (b >>> 16) & 0xffff;
var bl = b & 0xffff;
// the shift by 0 fixes the sign on the high part
// the final |0 converts the unsigned value into a signed value
return ((al * bl) + (((ah * bl + al * bh) << 16) >>> 0)|0);
}
@weaver-viii
weaver-viii / README.rst
Created April 10, 2016 15:23 — forked from njwilson/README.rst
Machine Learning Throwdown

Services and Algorithms

This section describes each of the services compared in the throwdown and the algorithms/models used.

BigML

Decision trees.

Services and Algorithms

This section describes each of the services compared in the throwdown and the algorithms/models used.

BigML

Decision trees, both single and bagged.

@weaver-viii
weaver-viii / introrx.md
Created March 21, 2016 01:48 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
{
"format_version": "1.0",
"generated_by": "cytoscape-3.1.1",
"target_cytoscapejs_version": "~2.1",
"data": {
"selected": true,
"__Annotations": [ "" ],
"shared_name": "main_islands_japan(1)",
"SUID": 20760,
"name": "tokyo_only"