Skip to content

Instantly share code, notes, and snippets.

View FullZero5's full-sized avatar
🏠
Working from home

@FullZero FullZero5

🏠
Working from home
View GitHub Profile
html {
font-size: 3vw;
margin: .5em;
}
body {
font-family: -apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Oxygen-Sans,
@FullZero5
FullZero5 / mithril.paginate.js
Created August 30, 2017 10:36
mithril paginate plugin
/* Module */
var mpaginate = (function(app){
var defaultOptions = {
perPage : 10,
page : 1,
limit : 10,
ellipsis : '…',
edges : 2
// store/index.js
const createStore = () => {
return new Vuex.Store({
state: {
counter: 0,
repos: []
},
actions: {
LOAD_REPOS: function({ commit }) {
axios.get('url').then((res) => {
@FullZero5
FullZero5 / sendform-to-telegram.php
Created April 3, 2018 19:08 — forked from palnov/sendform-to-telegram.php
Отправка данных с форм в телеграм
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (!empty($_POST['name']) && !empty($_POST['phone'])){
if (isset($_POST['name'])) {
if (!empty($_POST['name'])){
$uname = strip_tags($_POST['name']);
$unameFieldset = "Имя:%20";
}
}
if (isset($_POST['phone'])) {
@FullZero5
FullZero5 / import_json_appsscript.js
Created April 30, 2018 18:46 — forked from chrislkeller/import_json_appsscript.js
Adds what amounts to an =ImportJSON() function to a Google spreadsheet... To use go to Tools --> Script Editor and add the script and save.
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@FullZero5
FullZero5 / import_json_appsscript.js
Created April 30, 2018 18:46 — forked from chrislkeller/import_json_appsscript.js
Adds what amounts to an =ImportJSON() function to a Google spreadsheet... To use go to Tools --> Script Editor and add the script and save.
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@FullZero5
FullZero5 / С9_update_php_7.1.sh
Created April 26, 2018 09:18
Install with PHP 7.1 in Could IDE C9.io
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update -y
sudo apt-get install php7.1-curl php7.1-cli php7.1-dev php7.1-gd php7.1-intl php7.1-mcrypt php7.1-json php7.1-mysql php7.1-opcache php7.1-bcmath php7.1-mbstring php7.1-soap php7.1-xml php7.1-zip -y
sudo mv /etc/apache2/envvars /etc/apache2/envvars.bak
sudo apt-get remove libapache2-mod-php5 -y
sudo apt-get install libapache2-mod-php7.1 -y
sudo cp /etc/apache2/envvars.bak /etc/apache2/envvars
@FullZero5
FullZero5 / index.pug
Created August 15, 2018 09:50
Simple Profile Cards
#profiles.profile-cards
@FullZero5
FullZero5 / upgrade.sh
Created September 2, 2018 08:58 — forked from artemsky/upgrade.sh
PHP 7.2 Cloud9
sudo apt-get install python-software-properties -y
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update -y
sudo apt-get install php7.2 php-pear php7.2-curl php7.2-dev php7.2-gd php7.2-mbstring php7.2-zip php7.2-mysql php7.2-xml
sudo apt-get install libapache2-mod-php7.2 -y
sudo a2dismod php5
sudo a2enmod php7.2
sudo service apache2 restart
@FullZero5
FullZero5 / objtocss.js
Last active July 12, 2019 11:52
objtocss
const o2s = (o, className) => {
let elm = new Option();
Object.keys(o).forEach(a => (elm.style)[a] = o[a]);
return `.${className}{\n${elm.getAttribute("style")}\n}`;
}
const obj = {
visibility: "visible",
position: "fixed",
background: "transparent",