This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PaintingResponse { | |
List<Painting> paintings; | |
PaintingResponse(this.paintings); | |
PaintingResponse.fromJson(Map<String, dynamic> json) { | |
if (json['Paintings'] != null) { | |
paintings = new List<Painting>(); | |
json['Paintings'].forEach((v) { | |
paintings.add(new Painting.fromJson(v)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.application.freadom.activity.home; | |
import android.content.Context; | |
import android.support.annotation.NonNull; | |
import android.support.v4.content.ContextCompat; | |
import android.support.v7.widget.GridLayoutManager; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.LinearSnapHelper; | |
import android.support.v7.widget.RecyclerView; | |
import android.support.v7.widget.SnapHelper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'ttfunk' | |
file = TTFunk::File.open(ARGV[0]) | |
size = 200 | |
output_dir = ARGV[2] | |
`mkdir #{output_dir}` | |
cmap = file.cmap | |
chars = {} | |
unicode_chars = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Vipul on 18/11/16. | |
*/ | |
public class Elements { | |
private int icon; | |
private String name; | |
public int getIcon() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data":[ | |
{ | |
"viewType":"horizontalScroll", | |
"data":[ | |
{ | |
"viewType":"categoryElement", | |
"imageUrl":"https://gist.githubusercontent.com/vipulasri/8bd2115e50fd73272ea8de08cd54b9d5/raw/c61e583eb588f711126cc72899739d4c9ac9cba6/hamburger.png", | |
"title":"Burgers", | |
"subTitle":"260 Places", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.Canvas; | |
import android.graphics.Matrix; | |
import android.graphics.Paint; | |
import android.media.ExifInterface; | |
import android.os.AsyncTask; | |
import android.os.Environment; |
OlderNewer