Skip to content

Instantly share code, notes, and snippets.

View Purus's full-sized avatar
🎯
Focusing

Purusothaman Ramanujam Purus

🎯
Focusing
View GitHub Profile
@simoncozens
simoncozens / iconmaker.pl
Last active August 29, 2015 14:00
PhoneGap Icon Maker - put this into .cordova/hooks/after_prepare/
#!/bin/perl
use strict;
my $base = shift @ARGV;
my $splash = "splash.ai";
my $icon = "icon.ai";
my @formats = (
[qw/ splash ios Default-Landscape@2x~ipad.png 1496 2048 /],
[qw/ splash ios Default-Landscape~ipad.png 748 1024 /],
[qw/ splash ios Default-Portrait@2x~ipad.png 2008 153 /],
@planetsizebrain
planetsizebrain / LiferayPDFBoxConverter.java
Created April 29, 2015 13:21
Custom LiferayPDFBoxConverter for PDFBox 2.0.0-SNAPSHOT
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
@ebta
ebta / dat2mp4.bat
Created April 24, 2016 14:58
Fast convert VCD (*.dat) to MP4 with ffmpeg
"C:\Dir\ffmpeg\bin\ffmpeg" -i %1 -vcodec copy -acodec copy "F:\TargetDir\%~n1.mp4"
import 'dart:math' as math;
import 'dart:math';
import 'package:flutter/foundation.dart';
import 'package:color/color.dart';
import 'dart:ui' as ui;
Map<String, ColorDefinition> _kColorDictionary = {
Hue.monochrome.name:
const ColorDefinition(hue: Hue.monochrome, lowerBounds: const [
@slightfoot
slightfoot / capture_widget.dart
Created August 12, 2019 12:58
Capture Flutter Widgets as Image but Off Screen
import 'dart:async';
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() {
runApp(
MaterialApp(