This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIDeviceHardware.h | |
// | |
// Used to determine EXACT version of device software is running on. | |
#import <Foundation/Foundation.h> | |
@interface UIDeviceHardware : NSObject | |
- (NSString *) platform; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{exec} = require 'child_process' | |
chokidar = require('chokidar') | |
fs = require 'fs' | |
task 'build:templates:watch', 'in /templates continually precompile jade templates into public/templates.js', (options) -> | |
console.log options | |
watcher = chokidar.watch "templates", | |
ignored: (name) -> false | |
persistent: true | |
compile = -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
git add . | |
git commit -m "$1" | |
git push heroku master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.validator.setDefaults({ | |
highlight: function(label) { | |
return $(label).closest(".control-group").addClass("error"); | |
}, | |
success: function(label) { | |
return label.hide().closest(".control-group").removeClass("error"); | |
}, | |
errorClass: "help-inline", | |
validClass: "" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//use this mixin to get validation support and some helpful input functions | |
FormMixin = { | |
autoHandleChange: function(field, e) | |
{ | |
var value = (this.refs[field] && this.refs[field].getValue) ? this.refs[field].getValue() : e.target.value; | |
stateUpdate = {} | |
stateUpdate[field] = value | |
this.setState(stateUpdate, function() { | |
stateUpdate = {} | |
stateUpdate[field + "Error"] = this.validateSingle(field) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Data; | |
using System.Windows.Markup; | |
namespace Wpf | |
{ | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
/* | |
A simple spacer component to give room for the status bar. | |
Thanks to https://github.com/jgkim/react-native-status-bar-size/blob/master/StatusBarSizeIOS.js | |
*/ | |
/* eslint-disable react-native/split-platform-components */ | |
import PropTypes from 'prop-types' | |
import React, { Component } from 'react' | |
import { View, StatusBar, StatusBarIOS, NativeModules, Platform, StyleSheet } from 'react-native' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
OlderNewer