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
(defn CHECKEDGES [G S unexpl BACKTRACK ORDERLIST] ;aux function checking all edges outgoing from vector S | |
(if (= (G S) []) | |
(if (= BACKTRACK []) | |
[G nil BACKTRACK ORDERLIST] ;nowhere to backtrack anymore new S is nil | |
(recur G (peek BACKTRACK) unexpl (pop BACKTRACK) (conj ORDERLIST S))) ;no more edges to verify, need to backtrack, add S to orderlist | |
; now if (G S) edges are not empty, check all vertices | |
(let [V (peek (G S)) | |
newedges (pop (G S)) | |
newG (assoc G S newedges)] ;new edges are without V anymore |
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
(ns sc.core | |
(:require [clj-http.client :as client] | |
[cheshire.core :refer :all] | |
[clojure.string] | |
[clojure.java.io :as io])) | |
;; !!!!! | |
;; FIXED version runs without problems | |
;; to run those functions you need enter below sound_client_id:::: |
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
package module3; | |
//Java utilities libraries | |
import java.util.ArrayList; | |
//import java.util.Collections; | |
//import java.util.Comparator; | |
import java.util.List; | |
//Processing library | |
import processing.core.PApplet; |
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
package co.example.youtube; | |
/* | |
Example of how to get user's youtube channel id using google OAuth2, | |
the app needs to be registered at: | |
https://console.developers.google.com/apis/ | |
Credentials->Client ID for Android | |
with the same package name (in this case co.example.youtube) | |
otherwise error 10 will be received | |
*/ |
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
// | |
// AppDelegate.swift | |
// RemoteReceiver | |
// Receive remote events from Bluetooth head set or player. | |
// Created by michal on 06/11/2018. | |
// Copyright © 2018 michal. All rights reserved. | |
// | |
import UIKit | |
import MediaPlayer |
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
// | |
// main.swift | |
// MJPEGreader | |
// | |
// Created by michal on 17/11/2017. | |
// Copyright © 2018 michal. All rights reserved. | |
// | |
import Foundation |
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
// | |
// AudioPlayer.swift | |
// AudioPlayerNodes | |
// | |
// Created by michal on 23/01/2019. | |
// Copyright © 2019 michal. All rights reserved. | |
// | |
import AVFoundation |
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
import AVFoundation | |
import UIKit | |
import PlaygroundSupport | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
class AudioPlayer { | |
var backgroundAudioFile:AVAudioFile | |
var topAudioFiles: [AVAudioFile] = [] |
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
import AVKit | |
import Photos | |
func getVideos() -> PHFetchResult<PHAsset> { | |
let fetchOptions = PHFetchOptions() | |
fetchOptions.sortDescriptors = [NSSortDescriptor(key: "creationDate",ascending: false)] | |
fetchOptions.predicate = NSPredicate(format: "mediaType = %d",PHAssetMediaType.video.rawValue) | |
return PHAsset.fetchAssets(with: fetchOptions) | |
} |
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
import AVFoundation | |
import PlaygroundSupport | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
class AudioPlayer { | |
var topAudioFiles: [AVAudioFile] = [] | |
var engine:AVAudioEngine | |
var backgroundAudioNode: AVAudioPlayerNode | |
var backgroundAudioFile: AVAudioFile |
OlderNewer