Skip to content

Instantly share code, notes, and snippets.

@nisargjhaveri
nisargjhaveri / CustomFontApplication.java
Created July 13, 2016 12:24
Set fallback fonts globally in android app
package com.example.customfonts;
import android.app.Application;
import android.content.res.AssetManager;
import android.graphics.Typeface;
import android.os.Build;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
@nisargjhaveri
nisargjhaveri / common.php
Created February 20, 2016 13:30
Webdev Workshop - Day 2 - Codes for login and register
<?php
ini_set('display_error', 1);
error_reporting(E_ALL);
$db_config = [
'host' => 'localhost',
'username' => 'root',
'password' => '',
'db_name' => 'test'
];
@nisargjhaveri
nisargjhaveri / form-for-lang.php
Created February 20, 2016 13:25
Webdev Workshop - Day 2 - Codes we used today while explaining
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<form action="lang.php" method="get">
<input value="default" name="lang" type="text">
<input value="Go" type="submit">
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@nisargjhaveri
nisargjhaveri / designer.html
Last active August 29, 2015 14:10
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">
<link rel="import" href="../core-icons/core-icons.html">