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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace Calculator | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
namespace Oxygen | |
{ |
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
require 'socket' | |
include Socket::Constants | |
class Client | |
def initialize(settings, channel) | |
@settings = settings | |
@channel = channel | |
@connection = TCPSocket.open(@settings['server'], @settings['port']) |
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
class Shape(): | |
def __init__(self, sides, size): | |
self.sides = sides | |
self.size = size | |
def render(self): | |
if self.sides == 0: | |
circle(self.size) | |
else: | |
self.render_polygon() |
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
gem uninstall smeagol gollum sinatra rack | |
gem uninstall sinatra =v=1.3.3 # just to make sure | |
gem install sinatra -v=1.1.3 --no-ri --no-rdoc | |
gem install rack -v=1.2.4 --no-ri --no-rdoc | |
gem install smeagol --no-ri --no-rdoc |
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
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[green]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" | |
PROMPT='%{$fg[cyan]%}[%m/%n]%{$fg[red]%}|%{$fg[green]%}[%2~]%{$reset_color%}%{$reset_color%}$(git_prompt_info)%{$fg[cyan]%}⇒%{$reset_color%} ' |
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
5 golang.org/x/crypto/ssh.(*Client).handleChannelOpens(, ) | |
5 golang.org/x/crypto/ssh.(*Client).handleGlobalRequests(, ) | |
5 golang.org/x/crypto/ssh.(*forwardList).handleChannels(, ) | |
7 golang.org/x/crypto/ssh.(*handshakeTransport).kexLoop() | |
7 golang.org/x/crypto/ssh.(*handshakeTransport).readPacket(, , , , , ) |
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
sudo mv /etc/php-fpm.d/www.conf /etc/php-fpm.d/www.conf.bak; | |
sudo yum remove -y php70w*; | |
sudo yum install -y php71w php71w-fpm php71w-opcache php71w-devel php71w-cli php71w-pdo php71w-pear php71w-mcrypt php71w-xml php71w-gd php71w-mbstring php71w-bcmath php71w-mysqlnd php71w-soap php71w-process php71w-pecl-redis php71w-pecl-imagick; | |
sudo rm -rf /etc/php-fpm.d/www.conf; | |
sudo mv /etc/php-fpm.d/www.conf.bak /etc/php-fpm.d/www.conf; | |
sudo service nginx restart && sudo service php-fpm restart; | |
echo "DONE MATEY!"; |
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
package main | |
import ( | |
"github.com/hajimehoshi/oto" | |
"log" | |
"math" | |
"strings" | |
) | |
const defaultNumChannels = 2 |
OlderNewer