Skip to content

Instantly share code, notes, and snippets.

View samsonradu's full-sized avatar
💭
We were promised flying cars, instead we got 140 characters.

Samson Radu samsonradu

💭
We were promised flying cars, instead we got 140 characters.
View GitHub Profile
@samsonradu
samsonradu / Ooxml footnotes.WORD.yaml
Created October 11, 2021 13:06 — forked from AbidRahman-MSFT/Ooxml footnotes.WORD.yaml
Replace selection with sample text and footnote using Ooxml.
name: Ooxml footnotes
description: Replace selection with sample text and footnote using Ooxml.
host: WORD
api_set: {}
script:
content: >
$("#run").click(() => tryCatch(run));
const prefix = `<?xml version="1.0" encoding="UTF-8"?><pkg:package xmlns:pkg="http://schemas.microsoft.com/office/2006/xmlPackage"><pkg:part pkg:name="/_rels/.rels" pkg:contentType="application/vnd.openxmlformats-package.relationships+xml" pkg:padding="512"><pkg:xmlData><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml" /></Relationships></pkg:xmlData></pkg:part><pkg:part pkg:name="/word/_rels/document.xml.rels" pkg:contentType="application/vnd.openxmlformats-package.relationships+xml" pkg:padding="256"><pkg:xmlData><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId4" Type="http://schemas.openxmlform

Composants d'une montre

Boîtier

  • Materiaux: Acier (inoxydable), Titanium, Or etc.
  • Composants: Couronne, Lunette

Mouvement

  • Mécanique: Automatique/Manuelle

Ceux-ci enmagasinent de l'énergie grâce aux mouvements naturels du poignet du porteur de la montre grâce à l'ajout d'un rotor (aussi appelé masse oscillante) qui remonte le ressort principal de manière perpétuelle, un système inventé par Rolex en 1930

*: "Public"
EC-DEV: String {"EC-DEV"}
EC-PRD: String {"EC-PRD"}
EC-STG: String {"EC-STG"}
SJ-DEV: String {"SJ-DEV"}
SJ-PRD: String {"SJ-PRD"}
SJ-STG: String {"SJ-STG"}
SJ-UMLTPL: String {"SJ-UMLTPL"}
SJ-UMLTPL-REFERENCES: String {"SJ-UMLTPL-REFERENCES"}
SJH-DEV: String {"SJH-DEV"}
Ap: 688.900 RON
Avans: 229.410 RON
Credit: 459.490 RON
ING
30Y: 989.845 RON (-115.000EUR)
10Y: 614.972 RON (-33.500EUR)
5Y: 535.765 RON (-16.500EUR)
http://www.finzoom.ro/articole/sfaturi/credite-imobiliare-p~8b367c89-45fb-4978-94fd-9a56aa7d45fd/
Ap: 688.900 RON
Avans: 229.410 RON
Credit: 459.490 RON
ING
30Y: 989.845 RON (-115.000EUR)
10Y: 614.972 RON (-33.500EUR)
5Y: 535.765 RON (-16.500EUR)
02.08 0.5 CSR
09.08 2 Talks, Ssl setup, AWS DNS changes
23.08 0.5 Talks, ssl
24.08 0.5 Minor adjustments
<?php
function base64url_encode($data) {
return rtrim(strtr(base64_encode($data), '+/', '-_'), '=');
}
function aes_encrypt($data, $aes_key, $sha_key) {
// apply PKCS#7 padding
$pad = 16-strlen($data)%16;
$data .= str_repeat(chr($pad),$pad);
// generate random IV
@samsonradu
samsonradu / gist:92006d38d6b76cbfa7ef
Last active June 20, 2016 12:09
Browser Console output in a div (for mobile devices without a console view)
function consolify(el){
var oLog = console.log;
var oWarn = console.warn;
var oErr = console.error;
console.log = console.info = function(message){
if (oLog)
oLog.call(console, message);
write(message, el, "info");
};
@samsonradu
samsonradu / index.js
Last active August 29, 2015 13:56 — forked from mteichtahl/index.js
this.$palettes.on('hidden.bs.collapse', function (e) {
var $this = $(this),
$target = $(e.target);
var $i = $("span[itemprop=expandCollapseIcons] i", $target.closest(".panel"));
if ($i.hasClass('icon-chevron-down')) {
$i.removeClass('icon-chevron-down').addClass('icon-chevron-up');
} else {
$i.removeClass('icon-chevron-up').addClass('icon-chevron-down');
}
@samsonradu
samsonradu / index.js
Last active August 29, 2015 13:56 — forked from mteichtahl/index.js
this.$palettes.on('hidden.bs.collapse', function (e) {
var $this = $(this),
targetPage = $target.attr('id').slice(0, -6),
$target = $(e.target);
var $i = $("span[itemprop=expandCollapseIcons] i", $("#" + targetPage + "-panel");
if ($i.hasClass('icon-chevron-down')) {
$i.removeClass('icon-chevron-down').addClass('icon-chevron-up');
} else {
$i.removeClass('icon-chevron-up').addClass('icon-chevron-down');