Skip to content

Instantly share code, notes, and snippets.

View lensanag's full-sized avatar

Lenin Sanchez lensanag

View GitHub Profile
@lensanag
lensanag / index.js
Last active August 23, 2020 00:25 — forked from wdmtech/index.js
Facebook SDK (Graph/REST API) integration as a Vue.js mixin
export let facebookSDK = {
mounted () {
let _this = this
this.$nextTick(() => {
window.fbAsyncInit = function () {
window.FB.init({
appId: 'XXX',
xfbml: true,
version: 'v2.6'
})
@lensanag
lensanag / vscode-italic-font-settings.md
Created January 21, 2021 20:31 — forked from junagao/vscode-italic-font-settings.md
VSCode italic font settings

VSCode italic font settings

Add this to settings.json (cmd ,):

{
  "editor.fontFamily": "Operator Mono, Fira Code iScript, Menlo, Monaco, 'Courier New', monospace",
  "editor.fontLigatures": true,
  "editor.tokenColorCustomizations": {
    "textMateRules": [
      {
@lensanag
lensanag / aes-256-cbc-test.js
Created October 30, 2021 14:10 — forked from brettscott/aes-256-cbc-test.js
AES 256 CBC encryption between Golang and Node JS
// Node v6.9.0
//
// TEST FILE (cut down for simplicity)
// To ensure Golang encrypted string can be decrypted in NodeJS.
//
let crypto;
try {
crypto = require('crypto');