Skip to content

Instantly share code, notes, and snippets.

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

Tomas Trescak tomitrescak

🏠
Working from home
View GitHub Profile
@tomitrescak
tomitrescak / meteor.d.ts
Created March 2, 2016 23:14
Typescript definition for Meteor 1.3
// Type definitions for Meteor 1.3
// Project: http://www.meteor.com/
// Definitions by: Dave Allen <https://github.com/fullflavedave>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/**
* These are the common (for client and server) modules and interfaces that can't be automatically generated from the Meteor data.js file
*/
interface EJSONable {
@tomitrescak
tomitrescak / tslint.json
Created May 18, 2016 23:09
Tslint config for Meteor projects
{
"rules": {
"class-name": true,
"comment-format": [true, "check-space"],
"curly": true,
"eofline": true,
"forin": false,
"indent": [true, "spaces"],
"label-position": true,
"label-undefined": true,
@tomitrescak
tomitrescak / .eslintrc
Created May 18, 2016 23:13
Eslint config, optimised for Mantra
{
"env": {
"es6": true,
"browser": true,
"node": true
},
"parser": "babel-eslint",
"rules": {
@tomitrescak
tomitrescak / tsconfig.json
Created May 18, 2016 23:15
TsConfig with classic module resolution, depending on global typings
{
"compileOnSave": true,
"compilerOptions": {
"target": "es6",
"module": "es6",
"declaration": false,
"noImplicitAny": true,
"removeComments": false,
"noLib": false,
"preserveConstEnums": true,
@tomitrescak
tomitrescak / .jsbeautifyrc
Last active May 19, 2016 00:09
Js Beautify configuration for Atom
{
"typescript": {
"indent_size": 2,
"indent_char": " ",
"indent_level": 0,
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 2,
"jslint_happy": true
},
@tomitrescak
tomitrescak / custom.d.ts
Last active May 19, 2016 01:14
Global ambient typings for Meteor development
///////////////////////////////////////////////////////////////
// Node.js //
///////////////////////////////////////////////////////////////
declare var module: any;
declare function require(mod: string): any;
///////////////////////////////////////////////////////////////
// react-router //
///////////////////////////////////////////////////////////////
@tomitrescak
tomitrescak / atom-style.less
Created May 19, 2016 07:58
Atom font styles
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
*
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
* http://lesscss.org
*/
// file composer
interface IApolloDefinition {
schema: string;
queries?: Object;
resolvers?: Object;
mutations?: Object;
queryText?: string;
mutationText?: string;
}
(node) v8::ObjectTemplate::Set() with non-primitive values is deprecated
(node) and will stop working in the next major release.
==== JS stack trace =========================================
Security context: 0x344b796c9e59 <JS Object>#0#
1: .node [module.js:568] [pc=0x235a7436c884] (this=0x80763bb0bf9 <an Object with map 0x371dbfd17d41>#1#,module=0x2d51400e1d21 <a Module with map 0x371dbfd18319>#2#,filename=0x2d51400e1cb1 <String[83]: /Users/tomi/Github/apps/chimp-tutorial/node_modules/fsevents/build/Release/fse.node>)
2: load [module.js:458] [pc=0x235a74334332] (this=0x2d51400e1d21 <a Module with map 0x371dbfd18319>#2#,filename=0x2d51400e1cb1 <String[83]: /Users/tomi/Github/apps/chimp-tutorial/node_modules/fsevents/build/Release/fse.node>)
3: tryModuleLoad(aka tryModuleLoad) [module.js:417] [pc=0x235a74333e5d] (this=0x344b79604189 <undefined>,module=0x2d51400e1d21 <a Module with map 0x371dbfd18319>#2#,filename=0x2d51400e1cb1 <String[83]: /Users/tomi/Github/apps/chimp-tutorial/node_modules/fsev
@tomitrescak
tomitrescak / semantic-ui-react.d.ts
Last active October 29, 2021 13:43
Typescript binding for semantic-ui-react
// Generated by typings
// Source: ../../../../Downloads/semantic-ui-react.d.ts
declare namespace _semanticUIReact {
// import ListItemContent = __ReactMDL.ListItemContent;
type InputType = 'color' | 'date' | 'datetime' | 'datetime-local' | 'email' | 'number' | 'range' | 'search' | 'select' | 'password' | 'tel' | 'text' | 'time' | 'url' | 'week'
type SemanticCOLORS = 'red' | 'orange' | 'yellow' | 'olive' | 'green' | 'teal' | 'blue' | 'violet' | 'purple' | 'pink' | 'brown' | 'grey' | 'black' | 'twitter' | 'google plus' | 'facebook'
type SemanticSOCIAL = 'facebook' | 'google plus' | 'vk' | 'twitter' | 'linkedin' | 'instagram' | 'youtube'