Instantly share code, notes, and snippets.

View test.json
{"Ptorx":"https://ptorx.com"}
View output_log.txt
This file has been truncated, but you can view the full file.
Log uploaded on Sunday, November 18, 2018, 10:55:43 AM
Loaded mods:
Core: (no assemblies)
Active Harmony patches:
<FindPatientBedFor>c__AnonStorey3.<>m__0: TRANS: AnimalsLogic.YouSleepHere+RestUtility_FindPatientBedFor_Patch.Transpiler
<TryGiveJob>c__AnonStorey0.<>m__0: TRANS: AnimalsLogic.YouSleepHere+JobGiver_RescueNearby_TryGiveJob_Patch.Transpiler
Building_Bed.AssignedAnything: PRE: AnimalsLogic.YouSleepHere+Building_Bed_AssignedAnything_Patch.Prefix
Building_Bed.GetGizmos: post: AnimalsLogic.YouSleepHere+Building_Bed_GetGizmos_Patch.Postfix
View LastTest.log
This file has been truncated, but you can view the full file.
Start testing: Nov 18 18:51 UTC
----------------------------------------------------------
2/51 Testing: TestICOverride
2/51 Test: TestICOverride
Command: "/home/travis/virtualenv/python2.7.14/bin/python" "TestICOverride.py" "/home/travis/build/JSBSim-Team/jsbsim"
Directory: /home/travis/build/JSBSim-Team/jsbsim/build/tests
"TestICOverride" start time: Nov 18 18:51 UTC
Output:
----------------------------------------------------------
View polindrome.rb
puts "\n"+"#"*40
loop do
puts "\nEnter the word you want to check for palindromnos ('example' for example, 'exit' for quite)"
word = gets.chomp.downcase.strip
break if word == "exit"
if word == "example"
puts "Word '#{word}' is not a palindrome. Becouse '#{word}' not equal '#{word.reverse}'"
View MergeIntervals.java
/**
* Definition for an interval. public class Interval { int start; int end;
* Interval() { start = 0; end = 0; } Interval(int s, int e) { start = s; end =
* e; } }
*/
class MergeIntervals {
public List<Interval> merge(List<Interval> intervals) {
if (intervals.size() < 0) {
return null;
View README.md

digitalocean-up

A Terraform plan for prototypists to quickly spin up opinionated DigitalOcean instances

For development purposes only!

Usage

curl -sSOL https://gist.githubusercontent.com/ricardbejarano/f039b75336f1a126c97c1c1caf5aaba7/raw/426ce9d477b5fb8804a28791c4aaf3cdd19f0d4a/main.tf
View alien-codex-cal.sol
contract Calc {
bytes32 public one;
uint public index;
uint public length;
bytes32 public lengthBytes;
function getIndex() {
one = keccak256(bytes32(1));
index = 2 ** 256 - 1 - uint(one) + 1;
View credit_improved.c
//🙂🔫
#include <stdio.h>
#include <cs50.h>
#include <math.h>
#define 👌 int
#define 🍐 1
#define 🔒 "Number: "
#define 🍑 10
View randomColor.swift
extension UIColor {
static func randomColor() -> UIColor {
return UIColor(red: CGFloat(arc4random()) / CGFloat(UInt32.max),
green: CGFloat(arc4random()) / CGFloat(UInt32.max),
blue: CGFloat(arc4random()) / CGFloat(UInt32.max),
alpha: 1.0)
}
}
View friends.py
import vk
import requests
import datetime
session=vk.Session(access_token='17da724517da724517da72458517b8abce117da17da72454d235c274f1a2be5f45ee711')
vk_api = vk.API(session,v='5.87')
result = vk_api.users.get(user_id=50344716, fields='bdate')
#print (result)
friends = vk_api.friends.get(user_id=50344716, fields='bdate').get("items")
#print(friends)
my_birth=(result[0].get('bdate'))