Skip to content

Instantly share code, notes, and snippets.

View Rumyra's full-sized avatar
🙃
Probably coding

Ruth John Rumyra

🙃
Probably coding
View GitHub Profile
@appsforartists
appsforartists / MyComponent.tsx
Last active July 19, 2018 20:16
Snippets showing how to use -webkit-canvas to make a paint worklet work in Safari
/** @license
* Copyright 2016 - 2017 Google LLC. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@omgmog
omgmog / gulpfile.js
Created October 15, 2015 09:36
sass/postcss magic
var gulp = require('gulp');
var sass = require('gulp-sass');
var cssc = require('gulp-css-condense');
var postcss = require('gulp-postcss');
var pixrem = require('gulp-pixrem');
// Process Sass to CSS
gulp.task('sass', function () {
return gulp.src('./sass/**/*.scss')
.pipe(sass().on('error', sass.logError))
@elliottkember
elliottkember / app.js
Last active December 17, 2015 05:09
Ever wanted to repeat parts of your markup while building templates? Do it like this!
$(function(){
$('*[data-repeat]').each(function(){
var n = $(this).data('repeat');
var parent = $(this).parent();
self = $(this);
for (var i = 0; i < n; i++) {
self.after(self.clone());
}
})
});
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
button {
width: 100%;
height: 100px;
}
@arcturus
arcturus / crossdomainrequest.js
Created December 28, 2012 20:34
How to do a cross domain request in Firefox OS
/*
YOU'LL BE ABLE TO PERFORM A CROSS DOMAIN REQUEST IF YOUR APP IS CERTIFIED OR PRIVILEDGED.
FOR MORE INFO CHECK THE PERMISSIONS MATRIX: https://docs.google.com/spreadsheet/ccc?key=0Akyz_Bqjgf5pdENVekxYRjBTX0dCXzItMnRyUU1RQ0E#gid=0
First you'll need to setup the permission for doing the cross domain request on your application manifest.
Go to your app manifest, to the permissions section and add the following:
"systemXHR": {}
@soffes
soffes / perferences.json
Created August 22, 2012 05:35
My Sublime Text 2 config
{
"bold_folder_labels": true,
"color_scheme": "Packages/User/Espresso Soda.tmTheme",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".DS_Store",
".gitkeep",
"dump.rdb"
],
@albertopq
albertopq / firefoxOShacknighLinks
Created July 20, 2012 10:53
firefoxOS hacknight Links
anonymous
anonymous / html_title
Created July 10, 2012 13:13
HTML Select for Title
<select name="title" id="title">
<option selected="selected" value="0">--Please Select--</option>
<option value="039">Air Chief Marshall</option>
<option value="041">Air Commodore</option>
<option value="043">Air Marshall</option>
<option value="044">Air Vice Marshall</option>
<option value="042">Airman</option>
<option value="037">An t'Uasal</option>
<option value="068">Baron</option>
<option value="069">Baroness</option>
@anthonyshort
anthonyshort / _media-queries.scss
Created March 13, 2012 10:37
Media Queries in Sass
// Media Queries in Sass 3.2
//
// These mixins make media queries a breeze with Sass.
// The media queries from mobile up until desktop all
// trigger at different points along the way
//
// And important point to remember is that and width
// over the portrait width is considered to be part of the
// landscape width. This allows us to capture widths of devices
// that might not fit the dimensions exactly. This means the break
@aemkei
aemkei / LICENSE.txt
Last active April 12, 2024 21:27 — forked from 140bytes/LICENSE.txt
Binary Tetris - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE