This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var touchstartX = 0; | |
var touchstartY = 0; | |
var touchendX = 0; | |
var touchendY = 0; | |
var gesuredZone = document.getElementById('gesuredZone'); | |
gesuredZone.addEventListener('touchstart', function(event) { | |
touchstartX = event.screenX; | |
touchstartY = event.screenY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ing | |
er | |
a | |
ly | |
ed | |
i | |
es | |
re | |
tion | |
in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#These are the steps required in order to Install ImageMagick with JPG, PNG and TIFF delegates. | |
sudo apt-get update | |
#Install Build-Essential in order to configure and make the final Install | |
sudo apt-get install build-essential | |
#libjpg62-dev required in order to work with basic JPG files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( process.env.NODE_ENV === 'production' ) { | |
// dev runs with babel-node so this isn't necessary | |
require('babel-core/register'); // this includes the polyfill | |
require('newrelic'); | |
} | |
import 'source-map-support/register' | |
import Debug from 'debug' | |
import express from 'express' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
# Import the image | |
image = tf.image.decode_png(tf.read_file("./data/Input_image.png"), channels=1) | |
## Set the variable values here | |
# Offset variables values | |
offset_height= 20 | |
offset_width = 20 | |
# Target variables values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
accomplished | |
aggravated | |
alive | |
alone | |
amazed | |
amazing | |
amused | |
angry | |
annoyed | |
anxious |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var xhttp = new XMLHttpRequest(); | |
xhttp.onreadystatechange = function() { | |
if (xhttp.readyState == 4 && xhttp.status == 200) { | |
console.log(JSON.parse(xhttp.responseText).ip); | |
} | |
}; | |
xhttp.open("GET", "https://api.ipify.org?format=json", true); | |
xhttp.send(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: set ft=python: | |
# see the README at https://gist.github.com/phiresky/4bfcfbbd05b3c2ed8645 | |
# source: https://github.com/mpv-player/mpv/issues/2149 | |
# source: https://github.com/mpv-player/mpv/issues/566 | |
# source: https://github.com/haasn/gentoo-conf/blob/nanodesu/home/nand/.mpv/filters/mvtools.vpy | |
import vapoursynth | |
core = vapoursynth.get_core() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// generate character mind model | |
function MindModel() { | |
this.id = personality.id + ':' + intelligence.id; | |
this.personality = generatePersonality(); | |
this.intelligence = generateIntelligence(); | |
} | |
// 32 fundimental personality types with a total of 1,048,576 (16^5) variations. | |
// that's 32,768 variations per personality type | |
function generatePersonality() { | |
// variable declarations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function generatePlace(type) { | |
var name = ""; | |
var l = "bcdfghjklmnprstvwxyz"; | |
var v = "aeiou"; | |
var a = ["an","on","al","aph","ah"]; | |
var b = ["or","an","ro","ain","am"]; | |
var c = ["ia","sha","ea","ae","on","ue","a","as","in","na","o","di"]; | |
var d = ["ph","th","sh"]; | |
var sequences = [ |