Skip to content

Instantly share code, notes, and snippets.

View dfa1234's full-sized avatar

David Faure dfa1234

  • NDA
  • Israel
  • 22:29 (UTC +03:00)
View GitHub Profile
@dfa1234
dfa1234 / app.component.ts
Created January 31, 2018 20:07
HFO for frame animations
import {AfterViewInit, Component, OnInit, QueryList, ViewChild, ViewChildren} from '@angular/core';
import {Observable, Scheduler} from 'rxjs/Rx';
/**
*
* From Scheduler source code:
*
* @property {Scheduler} queue Schedules on a queue in the current event frame
@dfa1234
dfa1234 / index.html
Created January 31, 2018 20:04
css magic box
<html>
<head>
<title>Snippets</title>
<style>
body{
margin:0;
}
.container{
display: flex;
justify-content: center;
@dfa1234
dfa1234 / XORCipher.ts
Last active July 30, 2023 20:39 — forked from sukima/XORCipher.js
A Super simple encryption cipher using XOR and Base64 in JavaScript - Just made the typescript version for angular 4, and I removed the underscore dependency
// XORCipher - Super simple encryption using XOR and Base64
// Usage
// --------
//
// XORCipher.encode("test", "foobar"); // => "EgocFhUX"
// XORCipher.decode("test", "EgocFhUX"); // => "foobar"
//
// Copyright © 2013 Devin Weaver <[email protected]>
//
// This program is free software. It comes without any warranty, to