This file contains hidden or 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/sh | |
exec ruby -S -x "$0" "$@" | |
#! ruby | |
BEGIN { | |
puts <<-EOS | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=\"UTF-8\"> | |
</head> |
This file contains hidden or 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
Add-Type -AssemblyName Microsoft.Office.Interop.PowerPoint | |
[int][Microsoft.Office.Core.MsoAutoShapeType]::msoShapeCloud |
This file contains hidden or 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
Class Points { | |
[double] $Left | |
[double] $Top | |
[double] $Width | |
[double] $Height | |
[Points] Magnify([double] $percent) { | |
$center_X = $this.Left + ($this.Width / 2) | |
$center_Y = $this.Top + ($this.Height /2) | |
$newWidth = $this.Width * $percent |
This file contains hidden or 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
# Markdown_AddHeaderNumber | |
# input: Markdown.md | |
# output: Markdown.md added number on headers | |
# | |
# header format | |
# | |
# ```Markdown | |
# # 1. header | |
# ## 1.1. header | |
# ``` |
This file contains hidden or 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
import java.util.ArrayList; | |
import java.util.List; | |
public class ListUtils { | |
public static <T> List<List<T>> partition( | |
List<T> list, | |
int size) { | |
if (list == null) { throw new NullPointerException("List must not be null.");} | |
if (size <= 0) { throw new IllegalArgumentException("Size must be greater than 0.");} |
This file contains hidden or 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
package producer; | |
import java.io.BufferedInputStream; | |
import java.io.IOException; | |
import java.time.LocalDate; | |
import java.time.format.DateTimeFormatter; | |
import java.util.Properties; | |
import javax.annotation.PostConstruct; | |
import javax.enterprise.context.ApplicationScoped; |
This file contains hidden or 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
(ns tt.core) | |
(def *min-level* 2) | |
(def *chars* "fjdksla;vmc,x.z/rueiwoqpghbnty4738291056:\\@-][^!\"#$%&'()=~|`{+*}<>?_") | |
(def *vals* (to-array (seq *chars*))) | |
(defn interval [] | |
(let [start-time (System/currentTimeMillis)] |
This file contains hidden or 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 "ergodox.h" | |
#include "debug.h" | |
#include "action_layer.h" | |
#include "version.h" | |
#define BASE 0 // default layer | |
#define SYMB 1 // symbols | |
#define MDIA 2 // media keys | |
#define EPRM M(1) // Macro 1: Reset EEPROM |
This file contains hidden or 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 | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
sudo apt-get install vim emacs -y | |
sudo apt-get install apache2 -y | |
sudo apt-get install mysql-server -y | |
sudo apt-get install php -y | |
sudo apt-get install libapache2-mod-php -y | |
sudo apt-get install php-curl php-mysql php-xml php-xmlrpc php-gd php-intl php-zip php-mbstring php-soap -y |
This file contains hidden or 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
(in-package :vecto) | |
(defun ball (ratio) | |
(set-line-width 1) | |
(dotimes (i 5000) | |
(set-rgba-stroke 0 0 (random 1) 0.05) | |
(with-graphics-state | |
(rotate (* i (random 10))) | |
(translate (- (random 40) 20) (- (random 20) 10)) |