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
Translate INPUT to Russian and Japanese. Print only translated versions. |
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 | |
namespace League\Skeleton; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Routing\Router; | |
class SkeletonServiceProvider extends ServiceProvider | |
{ | |
/** |
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
# Be sure that you have installed libraries (if not - google it): | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
import pandas as pd | |
import xgboost as xgb | |
from sklearn.preprocessing import LabelEncoder | |
import numpy as np | |
from sklearn.metrics import accuracy_score | |
from sklearn.metrics import mean_squared_error | |
from sklearn import cross_validation |
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
/** | |
* | |
* In this example we create view with inplace and bulk editing. | |
* Tools and plugins: | |
* jQuery | |
* xEditable jquery plugin | |
* twitter bootstrap | |
* | |
*/ |
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
>>> from collections import defaultdict | |
>>> dd = defaultdict(str) | |
>>> dd | |
defaultdict(<type 'str'>, {}) | |
>>> dd['asd'] | |
'' | |
>>> int(dd['asd'] or 0) | |
0 | |
>>> dd['aaa']=123 | |
>>> int(dd['aaa'] or 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
cd ~/Library/Application\ Support/Skype/%USERNAME%/ | |
sqlite3 main.db "select datetime(timestamp,'unixepoch'), from_dispname, body_xml from Messages order by timestamp" > /Users/%USERNAME%/Desktop/SkypeHistory.txt | |
sqlite3 main.db "PRAGMA table_info(Messages);" |
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
syntax on | |
" An example for a vimrc file. | |
" | |
" Maintainer: Bram Moolenaar <[email protected]> | |
" Last change: 2008 Dec 17 | |
" | |
" To use it, copy it to | |
" for Unix and OS/2: ~/.vimrc | |
" for Amiga: s:.vimrc | |
" for MS-DOS and Win32: $VIM\_vimrc |
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
82 | 703 | |
---|---|---|
83 | 729 | |
84 | 6135 | |
85 | 783 | |
85 | 703 |
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 'formula' | |
class Hadoop < Formula | |
homepage 'http://hadoop.apache.org/common/' | |
url 'http://www.sai.msu.su/apache/hadoop/common/hadoop-0.23.1/hadoop-0.23.1.tar.gz' | |
def shim_script target | |
<<-EOS.undent | |
#!/bin/bash | |
exec "#{libexec}/bin/#{target}" "$@" |