Skip to content

Instantly share code, notes, and snippets.

@sadv1r
sadv1r / README-Template.md
Created May 15, 2017 10:33 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@sadv1r
sadv1r / license-badges.md
Created September 30, 2016 13:38 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file. Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Want to add a License?

Comment this gist or write me an E-Mail (lukas@himsel.me)

/* WeMos MQTT Client
*
* Depends on Adafruit DHT Arduino library
* https://github.com/adafruit/DHT-sensor-library
*/
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <DHT.h>
/* WeMos DHT Server
*
* Connect to WiFi and respond to http requests with temperature and humidity
*
* Based on Adafruit ESP8266 Temperature / Humidity Webserver
* https://learn.adafruit.com/esp8266-temperature-slash-humidity-webserver
*
* Depends on Adafruit DHT Arduino library
* https://github.com/adafruit/DHT-sensor-library
*/
#!/usr/bin/env kscript
//DEPS org.apache.opennlp:opennlp-tools:1.5.3,org.slf4j:slf4j-simple:1.7.7
import opennlp.tools.doccat.DoccatModel
import opennlp.tools.doccat.DocumentCategorizerME
import opennlp.tools.doccat.DocumentSampleStream
import opennlp.tools.util.PlainTextByLineStream
import java.io.FileInputStream
/**
<div class="dataTables_paginate paging_bootstrap pagination">
<ul>
<li class="<c:if test="${currentPage == 1}">disabled</c:if>">
<a href="<c:if test="${currentPage != 1}"><spring:url value="/history/1"/></c:if>"
<c:if test="${currentPage == 1}">onclick="return false;"</c:if>>First</a>
</li>
<li class="prev<c:if test="${currentPage == 1}"> disabled</c:if>">
<a href="<c:if test="${currentPage != 1}"><spring:url value="/history/"/>${currentPage - 1}</c:if>"
<c:if test="${currentPage == 1}">onclick="return false;"</c:if>> ← </a>
</li>
<!DOCTYPE html>
<?php
session_start();
include ("db.php");
if (isset($_POST['name'])) {
$lol = $_POST['name'];
$lol2 = str_split($lol);
@sadv1r
sadv1r / Arduino
Last active August 29, 2015 14:18
const int ledPin9 = 9;
const int ledPin8 = 8;
const int ledPin7 = 7;
const int ledPin6 = 6;
int pin;
int state;
void setup() {
pinMode(ledPin9, OUTPUT);
pinMode(ledPin8, OUTPUT);
sv_cheats 1
mp_freezetime 0
mp_roundtime 60
mp_roundtime_defuse 60
mp_autoteambalance 0
mp_maxmoney 60000
mp_startmoney 60000
mp_buytime 9999
mp_buy_anywhere 1
27.12.2014 01:13:54 DEBUG Mysql:13 - Конструктор запущен
27.12.2014 01:13:55 TRACE Mysql:21 - Подключение: com.mysql.jdbc.JDBC4Connection@23cf68e9
27.12.2014 01:13:55 INFO Mysql:22 - Подключение получено
27.12.2014 01:13:55 DEBUG Mysql:27 - Конструктор завершил работу
27.12.2014 01:13:55 DEBUG Parser:17 - Метод getFriends запущен
27.12.2014 01:13:55 DEBUG Parser:40 - Метод getStringFromApi запущен
27.12.2014 01:13:57 TRACE Parser:44 - Ответ на запрос "https://api.vk.com/method/friends.get?v=5.24&user_id=9313032" получен успешно
27.12.2014 01:13:57 TRACE Parser:47 - Строка длиной 1495 символов сформирована
27.12.2014 01:13:57 DEBUG Parser:53 - Метод getStringFromApi завершил работу
27.12.2014 01:13:57 TRACE Parser:24 - "items" из "response" получены успешно