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
{ | |
"precedingString": "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam", | |
data: { | |
"unimportant": "unimportant2", | |
"user": "Marcus", | |
"fullName": "Marcus Dwony", | |
"birthday": "14.05.1981", | |
"unimportant3": "unimportant4", | |
"unimportant5": "unimportant5 | |
}, |
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 reg = new Regex(@"(\S+) \({([ \d]+)}\)"); | |
var myStr = @"NULL ({ 8 9 36 37 }) John ({ 1 }) Loizou ({ 2 3 }) delves ({ 4 }) into ({ 5 })"; | |
var lines = reg.Matches(myStr).Cast<Match>().Select(m => | |
{ | |
var prefix = m.Groups[1]; | |
var nums = m.Groups[2].Value.Split().Where(s => !string.IsNullOrWhiteSpace(s)); | |
return string.Format("{0} {1}_", prefix, string.Join(",", nums)); | |
}); | |
Console.WriteLine(string.Join(Environment.NewLine, lines)); |
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 canvas = document.getElementById("canvas"), | |
ctx = canvas.getContext('2d'); | |
//jupiter's gravity divided by 10 for testing purposes | |
g = 24.79/10; | |
canvas.width = window.innerWidth - 50; | |
canvas.height = window.innerHeight - 22.5; | |
bounciness = (1/2) | |
var spawnrate = 16; | |
var inertia = 0.00075; |
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; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication1 | |
{ | |
class Program |
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
public partial class Form1 : Form | |
{ | |
public Form1() | |
{ | |
InitializeComponent(); | |
} | |
private async void button1_Click(object sender, EventArgs e) | |
{ | |
await Task.Run(() => |
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
<!DOCTYPE html> | |
<style> | |
/* Colors */ | |
body { | |
background: url(http://i.imgur.com/aZty7Mq.png); | |
animation: mymove 4s linear infinite; | |
-webkit-animation: mymove 4s linear infinite; | |
-moz-animation: mymove 4s linear infinite; | |
} |
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
#include <ros/ros.h> | |
#include <nav_msgs/Odometry.h> | |
#include <geometry_msgs/PoseStamped.h> | |
#include <geometry_msgs/Twist.h> | |
#include <gazebo_msgs/ModelStates.h> | |
#include <visualization_msgs/Marker.h> | |
#include <visualization_msgs/MarkerArray.h> | |
#include <tf/transform_datatypes.h> | |
#include <Eigen/Dense> |
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
componentWillMount() { | |
//fetch all dentist names | |
getAllDentists() | |
.then((results) => { | |
// Load reviews for all these dentists | |
for (dentist of results) { | |
getDentistReviews(dentist.id).then(response => { | |
this.setState(state => { | |
state[dentist.id] = response.reviews; | |
return state; |
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 staffDTOs = ctx.Set<Staff>().ToList().Select(s => new StaffDTO(s)); |
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.Linq.Expressions; | |
using VMware.Vim; | |
namespace AgentAutomation.VimExtensions | |
{ | |
class Foo | |
{ | |
static void Main() | |
{ |
OlderNewer