Skip to content

Instantly share code, notes, and snippets.

@fraga
fraga / Sleep.py
Last active February 24, 2023 01:22
Sleep.py
import io
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# Define the input CSV string
csv_string = """timestamp,duration
2022-02-20 23:00:00,420
2022-02-21 00:30:00,300
2022-02-21 07:15:00,360
using Newtonsoft.Json;
using ODataUtility.Microsoft.Dynamics.DataEntities;
using System;
using System.Linq;
using Microsoft.OData.Client;
namespace ODataConsoleApplication
{
class SimpleCRUDExamples
{
# Ikovsky
use_synth :piano
10.times do
play 50, amp: 1, sustain: 0.2, sustain_level: 1
sleep 0.35
play 57, sustain: 0.2
sleep 0.25
play 62, sustain: 0.2
sleep 0.35
@fraga
fraga / TelnetServer.cs
Last active April 25, 2024 15:25 — forked from robertripoll/README.md
Telnet Server C#
namespace TelnetServer
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;

Keybase proof

I hereby claim:

  • I am fraga on github.
  • I am fraga (https://keybase.io/fraga) on keybase.
  • I have a public key whose fingerprint is AA5F 6765 FB77 8496 98CE 8C23 427A 1324 8A7C 5EDC

To claim this, I am signing this object:

@fraga
fraga / gist:5d07180db0b0aabb7ab1
Last active August 29, 2015 14:17
Git Extensions Travis Build Log
Using worker: worker-linux-bb3654bb-1.bb.travis-ci.org:travis-linux-7
travis_fold:start:system_info
Build system information
Build language: c
Build image provisioning date and time
Wed Feb 4 18:22:50 UTC 2015
Operating System Details
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
@fraga
fraga / updateAxClass.cs
Last active August 29, 2015 14:11
updateAxClass
static void dynUpdateAxClass(Args _args)
{
AxGenerateAxBCClass gen;
gen = AxGenerateAxBCClass::newTableId(tableNum(SalesTable));
gen.run();
}
This is a test
Open .gitignore
add the following line
!packages/Microsoft.Bcl.Build*/tools/Microsoft.Bcl.Build.targets
save changes and commit
open up git bash for your repo
@fraga
fraga / SysCompileAll
Created May 22, 2013 14:57
SysCompileAll with timing
static void main(Args args)
{
System.Diagnostics.Stopwatch stopWatch;
System.TimeSpan elapsed;
if (SysCompileAll::prompt())
{
stopWatch = new System.Diagnostics.Stopwatch();
stopWatch.Start();