Skip to content

Instantly share code, notes, and snippets.

View EeKay's full-sized avatar

EeKay EeKay

View GitHub Profile
@johnhout
johnhout / Readme.md
Last active November 3, 2023 12:17
Laravel dutch validation translation file.
@kevinrenskers
kevinrenskers / progress-button.less
Last active January 20, 2017 11:11
Progress button for AngularJS
/* General styles for all types of buttons */
.progress-button {
position: relative;
display: inline-block;
}
.progress-button .progress-button-content {
position: relative;
display: block;
}
@vraravam
vraravam / minify_css_js.js
Last active July 4, 2019 05:12
For phonegap/cordova projects, if you want to minify your home-grown js/css files (and obfuscate them to some extent), you can do it with the following gist. It requires yuicompressor and a couple of other npm modules (please look at the require calls at the top). It will not touch the original files - only those that end up within the platforms…
#!/usr/bin/env node
var isRelease = (process.env.RELEASE && process.env.RELEASE === "1");
// Turn this on only for release
if (isRelease !== true) {
return;
}
var fs = require('fs');
var path = require('path');
@nijikokun
nijikokun / base64-utf8.module.js
Last active February 11, 2024 23:16
Javascript Base64 UTF8 for the Browser / Server. Base64 UTF-8 Encoding and Decoding Libraries / Modules for AMD, CommonJS, Nodejs and Browsers. Cross-browser compatible.
// UTF8 Module
//
// Cleaner and modularized utf-8 encoding and decoding library for javascript.
//
// copyright: MIT
// author: Nijiko Yonskai, @nijikokun, nijikokun@gmail.com
(function (name, definition, context, dependencies) {
if (typeof context['module'] !== 'undefined' && context['module']['exports']) { if (dependencies && context['require']) { for (var i = 0; i < dependencies.length; i++) context[dependencies[i]] = context['require'](dependencies[i]); } context['module']['exports'] = definition.apply(context); }
else if (typeof context['define'] !== 'undefined' && context['define'] === 'function' && context['define']['amd']) { define(name, (dependencies || []), definition); }
else { context[name] = definition.apply(context); }
@Alphapage
Alphapage / Page_VideoRecorderView.axml
Created October 24, 2012 12:25
Basic Video Recorder control in monodroid MvvmCross (add to Tutorial.UI sample and navigate to the ViewModel)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res/Tutorial.UI.Droid"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
>
<include
android:id="@+id/videoRecorder"