Skip to content

Instantly share code, notes, and snippets.

View manegame's full-sized avatar
👁️‍🗨️

Manus manegame

👁️‍🗨️
View GitHub Profile
@manegame
manegame / launch.sh
Created April 16, 2017 13:06
Launch HTTPS Server with node
https://gist.github.com/jed/6147872
# in gulpfile, change the proxies to https://yourdomain.$(whoami):port to proxy
http-server -S -C ssl.crt -K ssl.key -p 8888

Landing page:

  • share
  • newsletter
  • more
  • search

Program page:

  • all
  • program this week
  • upcoming
@manegame
manegame / XXX-youtube-embed.vue
Created December 17, 2017 13:20
Vue Youtube embed
<template>
<div class="youtube" :class="{'youtube--show': noframed}">
<youtube :video-id='id' @ready="ready"></youtube>
</div>
</template>
<script>
import { getIdFromURL } from 'vue-youtube-embed'
import noframe from 'reframe.js'
Request:
{
"SHOULD": [
{
"MATCH": {
"predicted_lexicology_v1_1": {
"id": "32e195f0-f5c9-4646-b76c-b4a68cc11be2",
"value": "[50:100]"
}
Request:
{
"SHOULD": [
{
"MATCH": {
"predicted_lexicology_v1_2": {
"id": "4a3b3492-8a7e-413f-9d8c-bcc76a1c2ad2",
"value": "[50:100]"
}
{
"MUST": [
{
"MATCH": {
"predicted_lexicology_v1_1": {
"id": "d004e500-719d-4880-9eec-1e76cabeec11",
"value": "[80:100]"
}
}
}
[
{
"category": "genre",
"uid": "32e195f0-f5c9-4646-b76c-b4a68cc11be2",
"percentage": 100,
"color": "rgb(53, 204, 113)",
"catIndex": 0,
"subcatIndex": 0
},
{
/**
*
* @param {Number} num
* @param {Number} in_min
* @param {Number} in_max
* @param {Number} out_min
* @param {Number} out_max
*/
mapValues(num, in_min, in_max, out_min, out_max) {
return (num - in_min) * (out_max - out_min) / (in_max - in_min) + out_min
{
"tracks": {
"href": "https://api.spotify.com/v1/search?query=isrc%3AFR59R1779926&type=track&offset=0&limit=20",
"next": null,
"items": [
{
"id": "1bJXuE8HHh3KnNOBhAk3xK",
"uri": "spotify:track:1bJXuE8HHh3KnNOBhAk3xK",
"href": "https://api.spotify.com/v1/tracks/1bJXuE8HHh3KnNOBhAk3xK",
"name": "Just Feel Alright",