Skip to content

Instantly share code, notes, and snippets.

View winkerVSbecks's full-sized avatar
🥵

Varun Vachhar winkerVSbecks

🥵
View GitHub Profile
@winkerVSbecks
winkerVSbecks / shrinkExpandHeader.css
Created May 23, 2014 03:23
Shrinking and Expanding Header
.fake-statusbar {
height: 20px;
max-height: 20px;
font-size: 12px;
box-sizing: border-box;
width: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 4;
{
"203": {
"Nutr_No": 203,
"Units": "g",
"NutrDesc": "Protein",
},
"204": {
"Nutr_No": 204,
"Units": "g",
"NutrDesc": "Total lipid (fat)",
.flex-container {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-direction: normal;
-moz-box-direction: normal;
-webkit-box-orient: horizontal;
-moz-box-orient: horizontal;

Chrome Flags Breaking CSS In Strange Ways

If you have the Enable experimental Web Platform features flag set as enabled in Chrome you might have been noticed that interweb has been acting pretty weird. Here are some of the issues I encountered:

@winkerVSbecks
winkerVSbecks / controller.js
Last active December 31, 2015 15:19
Meteor prevent re-loading data on each edit?
// TemplateBase.inspectionOrderFromService() is inspectionService.js
Template.assemble.items = function(result) {
var order = TemplateBase.inspectionOrderFromService();
if(order) {
return order.getInspectionItemsWithResult(result);
}
};
// AutoEd is an object with a list of all available assets (images, vids and animations)
@winkerVSbecks
winkerVSbecks / markdown.xml
Last active December 12, 2015 07:28 — forked from lg0/markdown.xml
<dict>
<key>name</key>
<string>diff: deleted</string>
<key>scope</key>
<string>markup.deleted</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#EAE3CA</string>
<key>fontStyle</key>
@winkerVSbecks
winkerVSbecks / gist:39956
Created December 25, 2008 21:32
search on mininova
CmdUtils.CreateCommand({
name: "mini",
takes: {"search_string": noun_arb_text},
license: "Public domain",
preview: "Searches for torrent on mininova.",
execute: function( directObj ) {
var search_string = encodeURIComponent(directObj.text);
//Utils.openUrlInBrowser( "http://www.mininova.org/search/?search=" + search_string);
@winkerVSbecks
winkerVSbecks / gist:39955
Created December 25, 2008 21:24
minninova
CmdUtils.CreateCommand({
name: "minni",
takes: {"search_string": noun_arb_text},
license: "Public domain",
preview: "Searches for torrent on PirateBay, Isohunt and Torrentz.",
execute: function( directObj ) {
var search_string = encodeURIComponent(directObj.text);
//Utils.openUrlInBrowser( "http://www.mininova.org/search/?search=" + search_string);
CmdUtils.CreateCommand({
name: "mff",
author: { name: "winker" },
description: "Search matches on mff.",
help: "<b>match:</b> mff <i>team vs team</i>",
icon: "http://builtwith.com/IMG/FAV/Fbtz.com.ico",
takes: {"team vs team": noun_arb_text},
//modifiers: {"mostrar": noun_arb_text},
preview: function(pBlock, campo, mods) {
CmdUtils.CreateCommand({
name: "mff",
author: { name: "winker" },
description: "Search matches on mff.",
help: "<b>Uso:</b> lastfm <i>nombre del usuario</i>",
icon: "http://cdn.last.fm/flatness/favicon.ico",
takes: {"nombre de usuario": noun_arb_text},
//modifiers: {"mostrar": noun_arb_text},
preview: function(pBlock, campo, mods) {