Skip to content

Instantly share code, notes, and snippets.

View rbravo's full-sized avatar

Rafael Bravo rbravo

  • Metheora
  • Rio de Janeiro, Brasil
View GitHub Profile
@rbravo
rbravo / Expo_Push_Notifications_Helper.cs
Last active July 24, 2021 06:42
Expo.io Push Notifications Send Through C#
public class ExpoPushHelper
{
public static dynamic SendPushNotification(string ExpoToken)
{
dynamic body = new
{
to = ExpoToken,
title = "hello",
body = "world",
sound = "default",
#In the Command Prompt, change directories to the %JAVA_HOME%\bin folder.
#(For example: C:\Program Files (x86)\Java\jdk1.7.0_55\bin).
#1) generate KeyStore
keytool -genkey -v -keystore c:\my-release-key.keystore -alias johnS -keyalg RSA -keysize 2048 -validity 10000
#2) sign APK
jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore <AndroidKeyName>.keystore platforms/android/bin/<ProjectName>-release-unsigned.apk <AndroidKeyNameAlias>
#3) zipalign (optional)
@rbravo
rbravo / bootstrap3_linebreaks_fix.css
Last active December 10, 2015 21:11
Fixes Bootstrap 3 line breaks using grid system when all items have the same class and one item is higher then the others (line breaks weirdly when this happens)
@media (max-width: 767px) { /*XS*/
.row-fluid > .col-xs-6:nth-child(odd),
.row > .col-xs-6:nth-child(odd) {
clear: left;
}
.row-fluid > .col-xs-6:nth-child(even),
.row > .col-xs-6:nth-child(even) {
clear: right;
}
.row-fluid > .col-xs-4:nth-child(3n+3),
@rbravo
rbravo / designer.html
Created April 4, 2015 21:07
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="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
@rbravo
rbravo / designer.html
Created April 4, 2015 21:07
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="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
/// <reference path="jquery-1.7.1.js" />
/*!
** Unobtrusive Ajax support library for jQuery
** Copyright (C) Microsoft Corporation. All rights reserved.
*/
/*jslint white: true, browser: true, onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: false */
/*global window: false, jQuery: false */