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
| module JsonText | |
| module JsonUtils | |
| using Unitful | |
| using JSON3 | |
| function remove_space(str::String)::String | |
| filter(x -> !isspace(x), str) | |
| end |
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
| // DynamicArrayType.cpp : This file contains the 'main' function. Program execution begins and ends there. | |
| // | |
| #include <iostream> | |
| #include <vector> | |
| #include <cassert> | |
| void* operator new(size_t size) | |
| { | |
| std::cout << "Allocating" << size << std::endl; |
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 json | |
| import typing | |
| from json import JSONEncoder | |
| def _default(self, obj): | |
| return getattr(obj.__class__, "serialize", _default.default)(obj) | |
| _default.default = JSONEncoder().default |
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 os | |
| import subprocess | |
| import time | |
| import asyncio | |
| from asyncio.subprocess import PIPE, STDOUT | |
| import sys | |
| class SubprocessAPI: | |
| def __init__(self, command, auto_connect: bool = False) -> None: |
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 | |
| ############################################# | |
| ## CHECK IF REMOTE DIVERGED FROM LOCAL ## | |
| ## IS SO THEN UPDATE THE SERVER ## | |
| ## (it's called every minute with cron) ## | |
| ############################################# | |
| # Set script directory as working directory | |
| cd "$(dirname "$0")" |
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 argparse | |
| import getpass | |
| import importlib.util | |
| # Install requests if not present | |
| package = 'requests' | |
| spec = importlib.util.find_spec(package) | |
| if spec is None: | |
| try: | |
| from pip import main as pipmain |
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
| #include "SaltyEngine/SFML.hpp" | |
| int main(int argc, char* argv[]) | |
| { | |
| SaltyEngine::SFML::AssetManager::Instance().LoadAssets(); | |
| SaltyEngine::SFML::Renderer *renderer = new SaltyEngine::SFML::Renderer(sf::VideoMode(1280, 720), "R-Type Launcher"); | |
| SaltyEngine::SFML::EventManager *event_manager = new SaltyEngine::SFML::EventManager(renderer->GetRenderWindow()); | |
| Singleton<SaltyEngine::SaltyEngine>::Instance().SetRenderer(renderer); |
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
| angular-2-typeScript-snippets | |
| atom-beautify | |
| atom-typescript | |
| auto-indent | |
| autocomplete-go | |
| builder-go | |
| color-picker | |
| file-icons | |
| genesis-ui | |
| git-time-machine |