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
Component component = (Component) engine.GetObject(package.GetValue("Component.ID")); |
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.Diagnostics; | |
using System.Linq; | |
public static class Profiler { | |
private static List<ProfilerFrame> stack = new List<ProfilerFrame>(); | |
private static Dictionary<string, ProfiledBlock> totals = new Dictionary<string, ProfiledBlock>(); | |
private static Action<string> logger; |
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
// This LINQPad script (easily converted into a regular C# program) extracts all zip files under a specific directory. | |
// makes use of the ZipUtility from http://linqpadsamples.codeplex.com/wikipage?title=Unzip%20a%20file%20using%20COM%20and%20dynamic | |
var files = Directory.EnumerateFiles(@"C:\Test Data\Gutenberg\pgdvd042010", "*.zip", SearchOption.AllDirectories).ToArray(); | |
var dc = new DumpContainer().Dump(); | |
var index=0; | |
var count=files.Count(); | |
foreach (var file in files) { | |
dc.Content = string.Format("{0}/{1}: {2}", index++, count, file); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{"TrainingCenterDatabase":{ | |
"Activities":{ | |
"Activity":{ | |
"@Sport":"Biking", | |
"Id":"2014-06-27T21:09:29Z", | |
"Lap":{ | |
"@StartTime":"2014-06-27T21:09:29Z", | |
"TotalTimeSeconds":"1334", | |
"DistanceMeters":"10702.6", | |
"MaximumSpeed":"19.416", |
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
<html> | |
<head> | |
<style> | |
body { | |
font: 10px sans-serif; | |
} | |
.chord path { | |
fill-opacity: .67; | |
stroke: #000; |
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
new Firebase("https://yours.firebaseio.com/").createUser("[email protected]", "password", new Firebase.ValueResultHandler<java.util.Map<String, Object>>() { | |
public void onSuccess(java.util.Map result) { | |
System.out.println("Successfully created user account with uid: " + result.get("uid")); | |
} | |
public void onError(com.firebase.client.FirebaseError firebaseError) { | |
System.err.ptinln("Error while creating user " + firebaseError); | |
} | |
}); |
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 strict'; | |
var React = require('react-native'); | |
var Firebase = require('firebase'); | |
var { | |
AppRegistry, | |
StyleSheet, | |
Text, | |
View, | |
TextInput, |
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 strict'; | |
var React = require('react-native'); | |
var Firebase = require('firebase'); | |
var ReactFireMixin = require('reactfire'); | |
var { | |
AppRegistry, | |
StyleSheet, | |
Text, | |
View, |
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
var ref = new Firebase('https://yours.firebaseio.com/acknowledge'); | |
var users = []; | |
function $(selector) { | |
var result = document.querySelectorAll(selector); | |
return (result.length > 1) ? Array.prototype.slice.call(result) : result[0]; | |
} | |
function handleAuthResult(error, authData) { | |
if (error) { |
OlderNewer