This file contains hidden or 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
| $('form.filter-bots').on('submit', function (e) { | |
| var $form = $(this); | |
| var $botCode = $form.find('#BotCode'); | |
| if ($botCode.length === 0) { | |
| $botCode = $('<input id="BotCode" name="BotCode" value="" type="hidden" />'); | |
| $form.prepend($botCode); | |
| } | |
| $botCode.val('RzipU6QGMMNh7d'); | |
| }); |
This file contains hidden or 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
| -- TRUNCATE TABLE xam_SFDC_Accounts | |
| INSERT INTO STOREREPLICA.StoreReplica.dbo.xam_SFDC_Accounts | |
| SELECT * | |
| FROM OPENQUERY(DBAMP, 'SELECT Id, Name, OwnerId, Owner.Name, Website FROM Account') | |
| SELECT * | |
| FROM STOREREPLICA.StoreReplica.dbo.xam_SFDC_Accounts |
This file contains hidden or 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
| with TEXT_IO; | |
| procedure name is | |
| begin -- name | |
| TEXT_IO.PUT(" ##### # # ###### ### ##### "); | |
| TEXT_IO.NEW_LINE; | |
| TEXT_IO.PUT("# # # # # # # # #"); | |
| text_io.new_line; | |
| text_io.put("# # # # # # # "); | |
| text_io.new_line; | |
| text_io.put("# ####### ###### # ##### "); |
This file contains hidden or 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
| partial void btnTrack_TouchUpInside (UIButton sender) | |
| { | |
| Xamarin.Insights.Track("track-clicked", new Dictionary <string, string> { | |
| {"track-local-time", DateTime.Now.ToString()} | |
| }); | |
| UIAlertView alert = new UIAlertView ("Done", "Track registered", null, "OK", null); | |
| alert.Show(); | |
| } |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| import alfred | |
| import calendar | |
| import time | |
| import math | |
| from delorean import utcnow, parse, epoch, Delorean | |
| # global var to see if user | |
| # has a time offset |
This file contains hidden or 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
| #! /usr/local/bin/node | |
| // BASED OFF THIS SCRIPT: https://gist.github.com/aliou/7310354 | |
| var _ = require('underscore'); | |
| var DayOne = require('dayone').DayOne; | |
| var DayOneEntry = require('dayone').DayOneEntry; | |
| var moment = require('moment'); | |
| var path = require('path-extra'); | |
| var notifier = require('node-notifier'); |
This file contains hidden or 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
| var yourApp = {}; | |
| yourApp.objectToQueryString = function(obj, base) { | |
| var tmp; | |
| // If a custom toString exists bail here and use that instead | |
| if(Object.isArray(obj) || (Object.isObject(obj) && obj.toString === Object.prototype.toString)) { | |
| tmp = []; | |
| yourApp.iterateOverObject(obj, function(key, value) { | |
| if(base) { | |
| key = base + '[' + key + ']'; |
This file contains hidden or 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
| public static void Log (Exception ex, ReportSeverity severity= ReportSeverity.Error, | |
| [CallerMemberName] string memberName = "", | |
| [CallerFilePath] string sourceFilePath = "", | |
| [CallerLineNumber] int sourceLineNumber = 0) | |
| { | |
| try{ | |
| Console.WriteLine (ex); | |
| Console.WriteLine("{0} - {1} - {2} \r\n {3}",sourceFilePath,memberName,sourceLineNumber,ex); |
This file contains hidden or 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
| var React = require('react/addons') | |
| , cx = require('classnames') | |
| , Formsy = require('formsy-react') | |
| ; | |
| Formsy.Input = React.createClass({ | |
| mixins: [Formsy.Mixin], | |
| propTypes: { | |
| groupClassName: React.PropTypes.oneOfType([ |
This file contains hidden or 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
| var React = require('react/addons') | |
| , cx = require('classnames') | |
| , Formsy = require('formsy-react') | |
| ; | |
| Formsy.AddonMixin = { | |
| propTypes: { | |
| groupClassName: React.PropTypes.oneOfType([ | |
| React.PropTypes.array, |