Skip to content

Instantly share code, notes, and snippets.

View stuarthendren's full-sized avatar
🏠
Working from home

Stuart Hendren stuarthendren

🏠
Working from home
View GitHub Profile
@haschek
haschek / .jshintrc
Created May 4, 2012 16:08
JSHint Configuration, Strict Edition
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
@fappel
fappel / Demo ScaleLayout
Last active May 7, 2021 07:58
Draft of an Custom SWT Layout for Responsive SWT UI Development (depends on SWT and Google Guava)
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
public class Demo {
@moduscreate
moduscreate / using_placeholder_images_with_react_native.js
Last active July 24, 2017 09:50
Using placeholder images with react native
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View,
Image,
Dimensions,
StatusBar,
ScrollView
// time and time end
console.time("This");
let total = 0;
for (let j = 0; j < 10000; j++) {
total += j
}
console.log("Result", total);
console.timeEnd("This");
// Memory