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
c++: | |
#include <iostream> | |
#include "windows.h" | |
using namespace std; | |
int main() { | |
int n; | |
for (n=10;n>0;n--) { | |
cout << "\n" << n; | |
Sleep(100); | |
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
{ | |
"working_dir":"C\\MinGW\\bin", | |
"cmd": ["cmd","C/","start","g++ -o", "$file.exe","$file"], | |
} |
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
#!/bin/bash | |
# https://github.com/jomo/imgur-screenshot | |
# https://imgur.com/apps | |
current_version="v1.5.4" | |
function is_mac() { | |
uname | grep -q "Darwin" | |
} |
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 http = require("http") | |
var path=require("path") | |
var fs = require("fs") | |
var busboy = require("busboy") | |
var key="YOURKEY" //needed for authentication | |
function generatename(extension){ | |
var length = Math.floor((Math.random()*10)+1) | |
var letters = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z",1,2,3,4,5,6,7,8,9,0] | |
var name="" | |
for (var i=1;i<=length;i++) { |
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
#!/usr/bin/env python | |
import subprocess32,requests,pyperclip | |
from os import system | |
image = subprocess32.Popen(["escrotum","-s","/tmp/img.png"],stdout=subprocess32.PIPE) | |
image = image.communicate()[0].rstrip() | |
key = "INSERTYOURKEYHERE" | |
upload = requests.post("WEBSITE:PORT",headers={"key":key},files={"file":("img.png",open(image,"rb"))}) | |
print(upload.text) | |
system("notify-send \"Upload Done!\" %s" % upload.text) | |
pyperclip.copy(upload.text) |
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
extern crate mioco; | |
extern crate time; | |
extern crate bufstream; | |
use std::str::FromStr; | |
use std::net::SocketAddr; | |
use std::io::prelude::*; | |
//use std::sync::{Arc, Mutex}; | |
use std::sync::Arc; | |
use mioco::sync::Mutex; |
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 std::io::prelude::*; | |
use std::io::BufReader; | |
use std::str::FromStr; | |
use std::fs::File; | |
#[derive(Copy, Clone, Debug)] | |
struct Position { | |
x: usize, | |
y: usize | |
} |
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 std::collections::HashMap; | |
use std::collections::BTreeMap; | |
use std::fs::File; | |
use std::io::prelude::*; | |
use std::str::FromStr; | |
use std::io::BufReader; | |
fn get_hm() -> HashMap<char, i16> { | |
let file = BufReader::new(File::open("/tmp/scores.txt").unwrap()); | |
let mut hm = HashMap::new(); |
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
extern crate libc; | |
use libc::malloc; | |
use std::ptr; | |
struct Vecr<T> { | |
ptr: *mut T, | |
len: isize, | |
capacity: isize | |
} |
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
#![feature(alloc, heap_api)] | |
extern crate alloc; | |
use std::ptr; | |
use alloc::heap; | |
use std::mem::{size_of, align_of}; | |
struct Vecr<T> { | |
ptr: *mut T, | |
len: usize, | |
capacity: usize |