App.User = Ember.Object.extend({
firstName: 'Hello',
lastName: 'world',
fullName: (function() {
console.log(this.get('firstName'));
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 datetime import datetime | |
import re | |
import os | |
import shutil | |
# migrate obsidian note to logseq | |
# input: - [ ] Rename `dev-triage-china` to `cn-triage` 📅 2023-09-01 | |
# output: | |
# - TODO aa | |
# SCHEDULED: <2023-08-30 Wed> |
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
#!/bin/bash | |
set -eof pipefail | |
# download proxy list from provider | |
proxies=$(cat /tmp/dler | awk -F \= '{ print $1"," }' | tr -d '\n' | sed 's/,$//') | |
echo "[Proxy] | |
$(cat /tmp/dler) |
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
// ==UserScript== | |
// @name Github Unsubscribe | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3 | |
// @description Unsubscribe merged or closed threads! | |
// @author You | |
// @match https://github.com/notifications | |
// @grant none | |
// ==/UserScript== |
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
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms) | |
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms) |
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
import * as webpack from "webpack"; | |
import * as ExtractTextPlugin from "extract-text-webpack-plugin"; | |
import * as ManifestPlugin from "webpack-manifest-plugin"; | |
import {TypedContext} from "../server/TypedContext"; | |
const css = new ExtractTextPlugin(TypedContext.isProduction() ? "[name].[contenthash].css" : "[name].css"); | |
const manifest = new ManifestPlugin({ | |
writeToFileEmit: true |
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
https://github.com/h5bp/Front-end-Developer-Interview-Questions | |
https://github.com/paddingme/Front-end-Web-Development-Interview-Question |
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
Key mappings | |
Add your preferred key mappings to your .vimrc file. | |
" RSpec.vim mappings | |
map <Leader>t :call RunCurrentSpecFile()<CR> | |
map <Leader>s :call RunNearestSpec()<CR> | |
map <Leader>l :call RunLastSpec()<CR> | |
map <Leader>a :call RunAllSpecs()<CR> |
linux current folder disk usage
du -h -d 1
Create a Database
mysql> CREATE DATABASE php_app;
Create a table
Create a Database
CREATE TABLE admin
NewerOlder