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 os | |
import re | |
import networkx as nx | |
def build_class_graph(directory): | |
"""Builds a directed acyclic graph of class dependencies.""" | |
# Create a graph to store the dependencies | |
graph = nx.DiGraph() | |
dependencies = {} |
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
class_name Promise | |
extends Resource | |
signal completed(results) | |
var _funcs: Array[Callable] | |
var _completed := false | |
var _results: Dictionary | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/** | |
* Original code, found in an inherited project | |
*/ | |
function original(item, currentLocale) { | |
const { message } = item; | |
if (!message.translation) return true; | |
if ( | |
message.translation.lastTranslated !== undefined && |
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
const inputString = '(console.log (add 3 5 8 123 (minus 32 2 2 2)))'; | |
const commands = { | |
'console.log': console.log, | |
inc(a, b) { | |
return Number.parseInt(a) + Number.parseInt(b); | |
}, | |
dec(a, b) { | |
return Number.parseInt(a) - Number.parseInt(b); | |
}, |
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
// foo(foo(bar))blim => foobaroofblim | |
function reverse(string) { | |
return string | |
.split('') | |
.reverse() | |
.join(''); | |
} | |
function checkRecursion(input) { |
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
class Forbidden extends Error { | |
constructor(message, status = 403) { | |
super(message); | |
this.status = status; | |
} | |
getStatus() { | |
return Number.parseInt(this.status); | |
} |
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
(ql:quickload :sdl2/examples) | |
(ql:quickload :glkit-examples) | |
(ql:quickload :sdl2kit-examples) | |
(defpackage :test | |
(:use :cl) | |
(:export :*is-new* :try-call)) | |
(in-package :test) | |
(use-package :kit.gl.test) |
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
#! /usr/bin/perl | |
use strict; | |
use warnings; | |
use ImyaFamiliyaLatinitseyFindIndex; | |
# Make sure that we have the say command availible | |
sub say { print @_, "\n" } | |
# Create a class instance |
NewerOlder