Every programming language has some kind of way of doing numbers and math. Do not worry, programmers lie frequently about being math geniuses when they really aren’t. If they were math geniuses, they would be doing math, not writing ads and social network games to steal people’s money.
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
$ mysql -u root -p | |
Enter password: # <= but, this will be the last time | |
mysql> SET PASSWORD FOR root@localhost=PASSWORD(''); | |
Query OK, 0 rows affected (0.00 sec) | |
mysql> exit | |
bye | |
$ mysql -u root # with no password, cause I know what i'm doing. |
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
ActiveAdmin.register Category do | |
extend CollectiveIdea::Acts::NestedSet::Helper | |
form do |f| | |
f.inputs do | |
f.input :name | |
f.input :parent_id, :as => :select, :collection => (nested_set_options(Category, @category) {|i, level| "#{'-' * level} #{i.name}" }) | |
end | |
f.buttons | |
end |
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
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011 | |
* http://benalman.com/ | |
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */ | |
(function($) { | |
var o = $({}); | |
$.subscribe = function() { | |
o.on.apply(o, arguments); |
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
RUBY_VERSION=1.9.3 | |
APP_NAME=that_great_app | |
rvm $RUBY_VERSION@$APP_NAME --create && gem install rails --no-ri --no-rdoc && rails new $APP_NAME -d mysql && echo "rvm $RUBY_VERSION@$APP_NAME" > $APP_NAME/.rvmrc && echo ".rvmrc" >> $APP_NAME/.gitignore |
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
<?php | |
$list_to_check = array( | |
array(2,2), | |
array(2,3), | |
array(3,3), | |
array(3,2) | |
); | |
// var_dump($list_to_check); |
#whatever
you want here
runs | sent | fail | total |
---|---|---|---|
simulated | 768 | 1577 | 2345 |
for real | 838 | 1584 | 2422 |
total | 1606 | 3161 | 4767 |
Google has currently available a DNS over HTTPS service in beta. source: https://developers.google.com/speed/public-dns/docs/dns-over-https
I couldn't find any api endpoint to make calls. But looking arround, I found a repository at github with some code to use such api. source: https://github.com/learnaddict/dnsoverhttps/blob/7bec8802fe8e85d31f75e74d46f57e7880e09e9f/dnsoverhttps.go#L12
With this I could make a request and get some result:
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
upstream prax_unsecure_backend { | |
server localhost:20559; | |
} | |
server { | |
listen 80; | |
server_name *.dev; | |
server_name *.xip.io; | |
server_name *.rafael.nz; |