This file contains hidden or 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
#!/bin/bash | |
# This file will be sourced in init.sh | |
# https://raw.githubusercontent.com/ai-dock/comfyui/main/config/provisioning/default.sh | |
# Packages are installed after nodes so we can fix them... | |
#DEFAULT_WORKFLOW="https://..." |
This file contains hidden or 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
Table Helper for Rails |
This file contains hidden or 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
// app/javascript/controllers/autosave_controller.js | |
import { Controller } from "@hotwired/stimulus"; | |
import debounce from "lodash.debounce"; | |
// Connects to data-controller="autosave" | |
export default class extends Controller { | |
connect() { | |
this.form = this.element.closest("form"); | |
this.formData = new FormData(this.form); |
This file contains hidden or 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
.service('Shots', ['$http', 'Auth', function($http, Auth) { | |
var accessToken = Auth.getAccessToken(); | |
return { | |
all: function(list, page) { | |
return $http.get('http://api.dribbble.com/v1/shots/?list=' + list + "&access_token=" + accessToken + "&page=" + page + "&per_page=10); | |
}, | |
isLiked: function(shotId) { | |
return $http.get('https://api.dribbble.com/v1/shots/' + shotId + '/like?access_token=' + accessToken).success(function (data) { | |
if(shot_id == data.id) { | |
return true |