Skip to content

Instantly share code, notes, and snippets.

View odyright's full-sized avatar
🏠
Working from home

Daniel odyright

🏠
Working from home
View GitHub Profile
{*_* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Author: Arno Garrels <arno.garrels@gmx.de>
Description: A place for common utilities.
Creation: Apr 25, 2008
Version: V9.1
EMail: http://www.overbyte.be francois.piette@overbyte.be
Support: https://en.delphipraxis.net/forum/37-ics-internet-component-suite/
Legal issues: Copyright (C) 2002-2023 by François PIETTE
Rue de Grady 24, 4053 Embourg, Belgium.
@echo off
echo ==========================================================================
echo = Tom Clancy's The Division 2 Cleaner =
echo = Division 2 ver. 3260693 =
echo = Ref https://gist.github.com/naa0yama/227888f9064e617a02f0205c4a87b2a5 =
echo ==========================================================================
set Division2_DIR=%USERPROFILE%\Documents\My Games\Tom Clancy's The Division 2\
echo Division2 Directory %Division2_DIR%
cd /d %Division2_DIR%
@odyright
odyright / D3D11AppView.cpp
Created March 19, 2022 09:25 — forked from terriblememory/D3D11AppView.cpp
Minimal C++/WinRT D3D11 UWP sample
/**
D3D11AppView.cpp
*/
#include "pch.h"
#include "D3D11AppView.h"
using namespace Windows::ApplicationModel;
using namespace Windows::ApplicationModel::Core;
using namespace Windows::ApplicationModel::Activation;
// From https://github.com/Dylan-H/NotePadUWP/
#include "pch.h"
#include "EmptyObjectToObjectConverter.h"
#include "ConverterTools.h"
namespace winrt::NotePad::implementation
{
DependencyProperty EmptyObjectToObjectConverter::_NotEmptyValueProperty =
DependencyProperty::Register(L"NotEmptyValue", winrt::xaml_typename<IInspectable>(), winrt::xaml_typename<NotePad::EmptyObjectToObjectConverter>(), PropertyMetadata(nullptr));
DependencyProperty EmptyObjectToObjectConverter::_EmptyValueProperty =
DependencyProperty::Register(L"EmptyValue", winrt::xaml_typename<IInspectable>(), winrt::xaml_typename<NotePad::EmptyObjectToObjectConverter>(), PropertyMetadata(nullptr));
@odyright
odyright / main.cpp
Created January 17, 2022 11:11 — forked from sylveon/main.cpp
Win32 Mica
#include <Unknwn.h>
#include <winrt/Windows.System.h>
#include <winrt/Windows.UI.Composition.Desktop.h>
#include <windows.ui.composition.interop.h>
#include <ShellScalingAPI.h>
#include <DispatcherQueue.h>
extern "C" IMAGE_DOS_HEADER __ImageBase;
using namespace winrt;
@odyright
odyright / example.scss
Created October 8, 2019 10:14
Compiles whole font-family @font-face rules. Uses a mixin and (preferably) separate file for each font-family and compiles css with @font-face rules for each weight/style. example.scss shows a font-family file, the other is the actual mixin.
// example font-face file
/* -----------------------------------------
Geometrica Font
------------------------------------------*/
// Source:
// -------
// DesignCuts: Exceptional Best-Selling Fonts Complete
// Latinotype
@odyright
odyright / Phoenix JWT.md
Created February 21, 2018 16:24 — forked from nikneroz/Phoenix JWT.md
Elixir + Phoenix Framework 1.3 + Guardian + JWT(Refresh, Revoke, Recover) + Comeonin

Elixir + Phoenix Framework 1.3 + Guardian + JWT(Refresh, Revoke, Recover) + Comeonin

User model bootstrap

Let's generate User model and controller.

mix ecto.create
mix phoenix.gen.json Accounts User users email:string password_hash:string
@odyright
odyright / NVOS.JsonParse.pas
Created May 20, 2020 21:49
classe distincte pour Développement d’une application pour analyser les données de Rosprirodnadzor
unit NVOS.JsonParser;
interface
uses System.JSON.Builders,
System.JSON.Types,
System.JSON.Writers,
System.JSON.Readers,
System.SysUtils,
System.StrUtils,
.header {
position: fixed;
background-color: #000;
width: 100%;
height: 80px;
max-width: 1230px;
left: 50%;
top: 0;
transform: translateX(-50%) translateX(-25px);
z-index: 7;
@odyright
odyright / 10 BEST SASS MIXINS
Created October 8, 2019 11:02
CSS - Practice
/* css prefix */
/*
div {
@include css3-prefix(transform, scale3d(2.5, 2, 1.5));
}
*/
@mixin css3-prefix($prop, $value) {
-webkit-#{$prop}: #{$value};
-moz-#{$prop}: #{$value};
-ms-#{$prop}: #{$value};