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
# by @levelsio | |
# | |
# MIT licensed | |
# | |
# make sure you enable php_intl on PHP | |
# you can do by uncommenting ;extension=intl or ;extension=php_intl | |
# and installing php-intl, e.g. sudo apt-get install php-intl | |
# | |
# made for Nomad List to give people a notice if they go to a place | |
# where it is currently Ramadan |
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
<? | |
// this bot tries to match chat messages to previous forum posts and links to them | |
require_once(__DIR__.'/../app/config.php'); | |
require_once(__DIR__.'/../app/functions.php'); | |
loadDbs(array('users_global','messages','questions')); | |
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
<!-- Maker Link by @levelsio --> | |
<!-- MIT License --> | |
<style> | |
body { | |
background:#333; | |
} | |
.levelsio-by { | |
font-family:"Helvetica Neue",sans-serif; | |
right:0; |
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
/* | |
code to match for dating | |
these are BOOLEAN values | |
match_gender = the gender of the user itself | |
match_target_gender = the gender of the target user | |
if match_gender_male = true it means the user is a male | |
if match_target_gender_male = true it means the user is looking for a male |
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
<?php | |
/* | |
I wrote this function to progressively obfuscate text in MAKEbook.io. When it KINDA worked, I just used it. | |
It can take a lot of improvement. I kinda just tweaked the values until it was good enough. It's not SO progressive though. | |
It takes all the output of your PHP scripts via ob_start(), reroutes that to the obfuscation function. | |
You should check if user paid for book or not, then either run ob_start or not! | |
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
; Make Bootcamp Windows keys act like OSX | |
; by @levelsio | |
; | |
; 2017-11-02 | |
; | |
; Licensed as GPL | |
; | |
; Use autohotkey.com to load this file on Windows | |
; | |
; This fixes Cmd+Tab to work like Alt+Tab, also keys like Cmd+C as Ctrl+C etc., Cmd+Q to Alt-F4 |
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
<? | |
// | |
// [ BUY BTC & ETH DAILY ON BITSTAMP ] | |
// by @levelsio | |
// | |
// 2017-08-23 | |
// | |
// 1) buy $40/day BTC | |
// 2) buy $10/day ETH | |
// |
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
/* <type text simulation> */ | |
var currentSampleJob=sampleJobs[0]; | |
var autoTypingActive=true; | |
var transitionDelayTime=0; | |
var sampleJobLength=0; | |
var typingNow=false; | |
var sampleJobTimer=0; | |
var timer=null; | |
var searchElement = $('.search'); |
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
# | |
# Building an MVP? | |
# Need a quick database you can set up in seconds? | |
# What about JSON? | |
# | |
# by @levelsio (with help from @marckohlbrugge, @oskarth, @maxdeviant and @kumailht) | |
# JS | |
db=[] | |
fs=require('fs') |
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
<link href="https://fonts.googleapis.com/css?family=Rubik:500" rel="stylesheet"> | |
<script> | |
$(function() { | |
$('.nomadcard').bind('mousemove',function(e) { | |
console.log('mousemove'); | |
pOffset = $(this).offset(); | |
x = e.pageX - pOffset.left; | |
y = e.pageY - pOffset.top; | |
w=$(this).width(); |