Skip to content

Instantly share code, notes, and snippets.

View jpfreire's full-sized avatar

João Paulo jpfreire

  • Chesf
  • Recife - PE
View GitHub Profile
@jpfreire
jpfreire / font_name.sh
Created September 20, 2020 23:54
Get the name of the font for vscode
strings ~/Library/Fonts/"Fira Code Retina Nerd Font Complete.otf" | grep Fira | head -n 5 | tail -n 1
@jpfreire
jpfreire / ntab.scpt
Created August 20, 2020 18:03
AppleScript to open new tab in current dir
-- Export the AppleScript as an aplication then enable it in System Preferences > Security & Privacy > Privacy > Accessibility
tell application "iTerm" to activate
tell application "System Events" to keystroke "pwd | pbcopy"
tell application "System Events" to key code 52
tell application "System Events" to keystroke "t" using command down
delay 2
tell application "System Events" to keystroke "cd \"`pbpaste`\" "
tell application "System Events" to key code 52
@jpfreire
jpfreire / sp_csr_hide_form_row.js
Last active June 5, 2018 19:08
Sharepoint hide display form row
$( document ).ready(function() {
$('h3.ms-standardheader:contains("Title")').closest('tr').hide();
});
@jpfreire
jpfreire / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@jpfreire
jpfreire / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../paper-input/paper-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@jpfreire
jpfreire / designer.html
Last active August 29, 2015 14:05
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<polymer-element name="my-element">
@jpfreire
jpfreire / designer.html
Created August 26, 2014 02:17
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
@jpfreire
jpfreire / designer.html
Created August 14, 2014 11:32
designer
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@jpfreire
jpfreire / 0_reuse_code.js
Created April 2, 2014 13:43
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jpfreire
jpfreire / Prompt Unique List.json
Created April 2, 2014 13:37
Lotus Notes Formula
lista:=@Unique(
@Explode(
@Name([CN];@UserName)+";"+
Nome_1+ ";" +
Nome_2+ ";" +
Nome_3 ;
";")
);
escolhido := @Prompt([OkCancelCombo];"Alterar item";"Escolha da lista";@Name([CN];@UserName);lista);